Allows you to browse directories and view files, create branches and commit new files.
$src = new Bitbucket\API\Repositories\Src();
$src->setCredentials(new Http\Message\Authentication\BasicAuth($bb_user, $bb_pass));
$src->get($account_name, $repo_slug, '1e10ffe', 'app/models/');
$src->get($account_name, $repo_slug, '1e10ffe', 'app/models/core.php');
$params = array();
$params['parent'] = 'master'; // Optional branch to commit to
$params['/path-to-file'] = 'File content'; // Can be multiple files per commit
$params['author'] = 'User <[email protected]>';
$params['message'] = 'Commit message';
$src->create($account_name, $repo_slug, $params);
$params = array();
$params['parent'] = 'master'; // Optional branch to commit to
$params['files'] = '/file-to-delete';
$params['author'] = 'User <[email protected]>';
$params['message'] = 'Commit message';
$src->create($account_name, $repo_slug, $params);
$params = array();
$params['parent'] = 'master'; // Optional source branch
$params['branch'] = 'new-branch-name';
$params['author'] = 'User <[email protected]>';
$params['message'] = 'Commit message';
$src->create($account_name, $repo_slug, $params);