sethington / php-phabricator-api
PHP包装Phabricator的Conduit API
dev-master
2013-11-15 01:24 UTC
Requires
- php: >=5.3.2
- ext-curl: *
This package is not auto-updated.
Last update: 2024-09-23 15:35:57 UTC
README
刚开始,功能尚未实现很多。
功能
- API入口点实现状态
- 差异 - 只部分实现
- 用户 - 只部分实现
待办事项
Everything
需求
- PHP >= 5.3.2,并安装cURL扩展,
- 来自您Phabricator实例的Arcanist证书(/settings/panel/conduit/)
自动加载
下载Composer
$ curl -s http://getcomposer.org/installer | php
然后在项目根目录下创建composer.json文件
{ "require": { "sethington/php-phabricator-api": "*" } }
... 使用以下命令安装您的依赖项
$ php composer.phar install
php-phabricator-api
客户端的基本使用方法
<?php // This file is generated by Composer require_once 'vendor/autoload.php'; $client = new Phabricator\Client('https://secure.phabricator.com', 'AUTH_USER', 'AUTH_CERTIFICATE'); $diffs = $client->api("diffs")->query(array( "limit" => 5 // retrieve last 5 differentials in phabricator ));
感谢
- Kevin Saliou (https://github.com/kbsali) 为Redmine API做出贡献,本API主要基于该API。
贡献者
- Seth Steele (@ravendevseth)