FAQ
This library follows semantic versioning ?
Yes it does.
How longer PHP 5.3 will be supported ?
Starting with version 1.0 of this library, minimum PHP version will be bumped to 5.4
How can I commit to the repository using this library ?
You can't, because Bitbucket offers only read-only access to a repository source through their API.
How can I fetch all pages of a paginated response ?
Using Response\Pager
.
Example: Fetching all repositories from an account:
$repo = new \Bitbucket\API\Repositories();
// auth here
$page = new \Bitbucket\API\Http\Response\Pager($repo->getClient(), $repo->all('gentlero'));
// get current page
$response = $page->getCurrent();
// next page
$response = $page->fetchNext();
Note: Any method of Pager
that is prefixed with fetch
implies that a new HTTP request will be made.