kcahir / tweetcompare
此包的最新版本(dev-master)没有提供许可证信息。
dev-master
2014-04-19 22:26 UTC
Requires
- php: >=5.3.0
- guzzle/guzzle: >=3.0, <3.4
- illuminate/support: 4.x
- thujohn/twitter: dev-master
- toin0u/geotools-laravel: 0.2.*@dev
This package is not auto-updated.
Last update: 2024-09-23 15:24:53 UTC
README
在 Laravel 4 中比较用户推文统计信息
您需要在 开发者控制台 中创建 Twitter 应用程序并创建您的访问令牌。
安装
您可以使用 composer create-project laravel/laravel --prefer-dist
命令来 安装 Laravel。
将 kcahir/tweetcompare
添加到 composer.json
文件中。
"kcahir/tweetcompare": "dev-master"
运行 composer update
命令以拉取 Tweetcompare 的最新版本。
现在打开 app/config/app.php
文件并将服务提供者添加到您的 providers
数组中。
'providers' => array(
'Kcahir\Tweetcompare\TweetcompareServiceProvider',
'Toin0u\Geotools\GeotoolsServiceProvider',
'Thujohn\Twitter\TwitterServiceProvider',
)
现在添加别名。
'aliases' => array(
'Twitter' => 'Thujohn\Twitter\TwitterFacade',
'Geotools' => 'Toin0u\Geotools\GeotoolsFacade',
)
运行 php artisan dump-autoload
资源
运行 php artisan asset:publish kcahir/tweetcompare
配置
运行 php artisan config:publish thujohn/twitter
并在 app/config/packages/thujohn/twitter/config.php
文件中修改配置信息。
最后一步
前往 app/routes.php
文件并删除显示的默认路由。
现在在浏览器中导航到 public/
目录。