vyze/ghpb
Composer 安装命令:
composer require vyze/ghpb
包简介
A simple browser for github projects. Package for laravel 4
README 文档
README
Version: 0.1
License
The github project browser is open-sourced software licensed under the MIT license
Description
This is an add-on for Laravel 4. Main functional is to search projects and users on github.com , to show their details, to fix like status in local database for chosen item. You can watch screenshots from docs/screenshots/.
Installation:
Before you start, be sure you have an api token set in you github account with read access to repo and user.
1. Modify your composer.json :
-
add to "require" block:
"vyze/ghpb": "dev-master" -
add to "post-install-cmd" and "post-update-cmd" blocks:
"php artisan config:publish graham-campbell/github", "php artisan config:publish vyze/ghpb", "php artisan asset:publish --path='vendor/vyze/ghpb/public/' ghpb", "php artisan asset:publish --path='vendor/twbs/bootstrap/dist/' bootstrap",
2. config
-
modify you app/config/app.php :
'providers' => array( // ... 'GrahamCampbell\GitHub\GitHubServiceProvider', //GitHub API 'Vyze\Ghpb\GhpbServiceProvider', //GitHub project browser )
-
app/config/packages/graham-campbell/config.php: add your github api token here:
'main' => array( 'token' => 'your-token', ), -
app/config/packages/vyze/config.php: you can set default github vendor/project and the root route for package
3. migrations:
After all abow you need to create a database structure
php artisan migrate --package='vyze/ghpb'
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-09