PHP Bitbucket API

Simple Bitbucket API wrapper for PHP

Issue components

Manage components on a issue tracker.

Prepare:

$issue = new Bitbucket\API\Repositories\Issues();
$issue->setCredentials( new Bitbucket\API\Authentication\Basic($bb_user, $bb_pass) );

Fetch all components:

$issue->components()->all($accountname, $repo_slug);

Fetch single component:

$issue->components()->get($accountname, $repo_slug, 100332);

Add a new component:

$issue->components()->create($accountname, $repo_slug, 'DummyComponent');

Update an existing component:

$issue->components()->update($accountname, $repo_slug, 100336, 'DummyComponent');

Delete an existing component:

$issue->components()->delete($accountname, $repo_slug, 100336);