gentle/bitbucket-api
PHP Bitbucket API wrapper (PHP 5.4+) using cURL and Buzz. Provides a simple client for interacting with Bitbucket endpoints, with full documentation and optional PHPUnit test suite. MIT licensed.
Allows you to create a new repository or edit a specific one.
{% include auth.md var_name="repo" class_ns="Repositories\Repository" %}
$repo->get($account_name, $repo_slug);
NOTE: API 1.0 endpoint for repository creation has been deprecated, so please use the new API 2.0 endpoint described bellow.
$repo->create($repo_slug, array(
'description' => 'My super secret project.',
'language' => 'php',
'is_private' => true
));
$repo->create($account_name, $repo_slug, array(
'scm' => 'git',
'description' => 'My super secret project.',
'language' => 'php',
'is_private' => true,
'fork_policy' => 'no_public_forks',
));
$repo->update($account_name, $repo_slug, array(
'description' => 'My super secret project !!!',
'language' => 'php',
'is_private' => true
));
$repo->delete($account_name, $repo_slug);
$repo->watchers($account_name, $repo_slug);
$repo->forks($account_name, $repo_slug);
$repo->fork($account_name, $repo_slug, $fork_slug, array(
'is_private' => true
));
$repo->branches($account_name, $repo_slug);
$repo->branch($account_name, $repo_slug);
$repo->manifest($account_name, $repo_slug, 'develop');
$repo->tags($account_name, $repo_slug);
$repo->raw($account_name, $repo_slug, '1bc8345', 'app/models/core.php')
$repo->filehistory($account_name, $repo_slug, '1bc8345', 'app/models/core.php')
How can I help you explore Laravel packages today?