beleneglorion / php-bugherd-api
此包已被废弃,不再维护。未建议替代包。
Bugherd API客户端
1.0
2014-03-23 15:07 UTC
Requires
- php: >=5.3.2
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: 4.0.*
This package is not auto-updated.
Last update: 2020-11-27 19:59:55 UTC
README
这是一个简单的面向对象的Bugherd API包装器,使用PHP5编写。
使用Bugherd API。
功能
- 遵循PSR-0约定和编码标准:自动加载友好
- API入口点实现状态
- *OK 组织
- *OK 用户
- *OK 项目
- *OK 任务
- *OK 评论
- *OK Webhooks
待办事项
- 编写一些文档
- 处理404错误
需求
- PHP >= 5.3.2,需要cURL扩展,
- 在bugherd上有一个账户,然后在设置 > 常规设置中获取您的 API访问密钥。
安装
通过composer,只需运行
$ php composer.phar require beleneglorion/php-bugherd-api:dev-master
php-bugherd-api
客户端的基本使用
<?php // This file is generated by Composer require_once 'vendor/autoload.php'; $client = new Bugherd\Client('API_ACCESS_KEY'); $client->api('user')->all(); $client->api('user')->listing(); $client->api('task')->create('project_id',array( 'description'=>'Example task', 'priority'=>'normal', 'status'=>'backlog', 'requester_id'=>123, 'tag_names'=>array('ui','feature'), 'assigned_to_id'=>123, 'external_id'=>'ABC123' ));
感谢!
- 感谢Kevin Saliou的php-redmine-api库,是灵感的绝佳来源!