The repositories namespace has a number of resources you can use to manage repository. The following resources are available on repositories:
$repositories = new Bitbucket\API\Repositories();
$repositories->setCredentials(new Http\Message\Authentication\BasicAuth($bb_user, $bb_pass));
If the caller is properly authenticated and authorized, this method returns a collection containing public and private repositories.
$repositories->all($account_name);
Only public repositories are returned.
$repositories->all();