atlassian/stash-client
Composer 安装命令:
composer require atlassian/stash-client
包简介
PHP Client for Atlassian Stash (Bitbucket v1)
README 文档
README
Atlassian Stash PHP Client
PHP Client for Atlassian Stash (Bitbucket v1)
Install With Composer
{
"require" : {
"atlassian/stash-client" : "1.1.*"
}
}
Examples
<?php use Atlassian\Stash\StashClient; // Init client, user/pass is optional $stash = new StashClient('http://git.example.com', 'user', 'password'); // returns array of Atlassian\Stash\Api\Project $projects = $stash->getProjects(); // returns array of Atlassian\Stash\Api\Repo $repos = $stash->getRepos('test'); // By Project Key // returns contents of file as a string $fileContents = $stash->getRepoFileContents($repos[0], '/someFile.txt');
Todo
Currently the client only does a handful of GETs (see above); Lots of missing methods, feel free to put in a pull request.
Reference docs: https://docs.atlassian.com/DAC/rest/stash/3.11.6/stash-rest.html
统计信息
- 总下载量: 17.32k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2016-04-12