PHP Bitbucket API

Simple Bitbucket API wrapper for PHP

Users

Get information related to an individual or team account.

Prepare:

// @see: https://bitbucket.org/account/user/<username or team>/api
$oauth_params = array(
    'client_id'         => 'aaa',
    'client_secret'     => 'bbb'
);

$user = new \Bitbucket\API\Users();
$user->getClient()->addListener(
    new \Bitbucket\API\Http\Listener\OAuth2Listener($oauth_params)
);

Get the public information associated with a user: (API 2.0)

$user->get($username);

Get the list of followers: (API 2.0)

$user->followers($username);

Get a list of accounts the user is following: (API 2.0)

$user->following($username);

Get the list of the user's repositories: (API 2.0)

$user->repositories($username);