atlassian / stash-client
PHP Client for Atlassian Stash (Bitbucket v1)
Installs: 16 752
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- guzzlehttp/guzzle: 5.3.*
Requires (Dev)
- phpunit/phpunit: 5.7.*
This package is auto-updated.
Last update: 2024-10-26 07:18:14 UTC
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