thiagorb/codeship
Composer 安装命令:
composer require thiagorb/codeship
包简介
Client for accessing Codeship API
README 文档
README
A PHP Client to use the Codeship API.
Requirements
- PHP 7.1 or newer
- Composer
Installing
This project follows the PSR-18 convention, which means you can use any HTTP client implementation with it.
If you don't know which one to choose, you can use the guzzle adapter.
To install the client with guzzle using composer run:
composer require thiagorb/codeship php-http/guzzle6-adapter
Usage
-
Instantiate a factory
- Using guzzle:
$factory = new \Thiagorb\Codeship\Guzzle\Factory;- Using another client:
$factory = new \Thiagorb\Codeship\Factory($client, $requestFactory); -
Instantiate the client
$codeship = $factory->build('user@example.com', 'password');
- Ready to use
$firstOrganization = $codeship->accountOrganizations()->read()[0];
$projects = $codeship->organizations()
->find($firstOrganization->getUuid())
->projects()
->read();
foreach ($projects->getProjects() as $project) {
var_dump($project->getName());
}
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
License
This project is licensed under the MIT License - see the LICENSE file for details
统计信息
- 总下载量: 11.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-30