cvo-technologies/cakephp-github
Composer 安装命令:
composer require cvo-technologies/cakephp-github
包简介
CakePHP webservice implementation for GitHub
README 文档
README
Installation
Using Composer
Ensure require is present in composer.json. This will install the plugin into Plugin/GitHub:
{
"require": {
"cvo-technologies/cakephp-github": "~1.1"
}
}
Usage
If you want to get information about a specific repository
Webservice config
Add the following to the Webservice section of your application config.
'git_hub' => [
'className' => 'Muffin\Webservice\Connection',
'service' => 'CvoTechnologies/GitHub.GitHub',
]
Controller
<?php namespace CvoTechnologies\GitHub\Controller; use Cake\Controller\Controller; use Cake\Event\Event; class IssuesController extends Controller { public function beforeFilter(Event $event) { $this->loadModel('CvoTechnologies/GitHub.Issues', 'Endpoint'); } public function index() { $issues = $this->Issues->find()->where([ 'owner' => 'cakephp', 'repo' => 'cakephp' ]); $this->set('issues', $issues); } }
统计信息
- 总下载量: 105
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-06