erivello/github-api-bundle
Composer 安装命令:
composer require erivello/github-api-bundle
包简介
Bundle around PHP GitHub API client from KnpLabs
README 文档
README
This bundle provides a simple integration of the KnpLabs PHP GitHub API client into Symfony2.
Installation
Installation is very easy, it makes use of Composer.
Add GithubApiBundle to your composer.json
"require": {
"erivello/github-api-bundle": "dev-master"
}
Register the bundle in app/AppKernel.php:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Erivello\GithubApiBundle\ErivelloGithubApiBundle(), ); }
Configure
Basic usage
erivello_github_api: ~
Cache usage
erivello_github_api: cache: # Select cache dir dir: '/tmp/dir' # Or select directly which cache you want to use file: '/tmp/file'
Usage
You can access the php-github-api by the github_api service:
<?php $service = $this->container->get('github_api'); $client = $service->getClient(); $repositories = $client->api('user')->repositories('ornicar');
License
The GithubApiBundle is licensed under the MIT license.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-16