2017 © Pedro Peláez
 

library stash-client

PHP Client for Atlassian Stash (Bitbucket v1)

image

atlassian/stash-client

PHP Client for Atlassian Stash (Bitbucket v1)

  • Wednesday, May 10, 2017
  • by philipwhitt
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,011 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 28 % Grown

The README.md

Build Status Latest Stable Version, (*1)

Atlassian Stash PHP Client

PHP Client for Atlassian Stash (Bitbucket v1), (*2)

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., (*3)

Reference docs: https://docs.atlassian.com/DAC/rest/stash/3.11.6/stash-rest.html, (*4)

The Versions

10/05 2017

dev-master

9999999-dev

PHP Client for Atlassian Stash (Bitbucket v1)

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

10/05 2017

1.1

1.1.0.0

PHP Client for Atlassian Stash (Bitbucket v1)

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

13/04 2016

1.0

1.0.0.0

PHP Client for Atlassian Stash (Bitbucket v1)

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires