composer require bobwez98/bitbucket-wrapper
php artisan vendor:publish --provider="BitbucketWrapper\BitbucketWrapperServiceProvider"
Generate an Bitbucket app password here.
Put your Bitbucket App credentials in the applications .env
file.
BB_USER=
BB_APP_PASSWORD=
BB_ACCOUNT_NAME=
Get all repositories
use BitbucketWrapper\Repository;
$repository = new Repository();
$repository->all();
Get paged repositories
use BitbucketWrapper\Repository;
$repository = new Repository();
$repository->getPagedRepositories();
Get Next page
$repository->getNextpage();
Get all commits for a repository
use BitbucketWrapper\Commit;
$commit = new Commit();
$commit->all($repoSlug);
Get paged commits
use BitbucketWrapper\Commit;
$commit = new Commit();
$commit->getPagedCommitsForRepo($repoSlug);
Get next page
$commit->getNextPage();
Get all commits after specific date
use BitbucketWrapper\Commit;
$commit = new Commit();
$commit->getCommitsFromDate($repoSlug, $date);
Get all commits on a specific date
use BitbucketWrapper\Commit;
$commit = new Commit();
$commit->getCommitsByDate($repoSlug, $date);
Get all users pullrequests
use BitbucketWrapper\PullRequest;
$pullrequest = new PullRequest();
$pullrequest->getUsersPullRequests($username);
Get all users in team
use BitbucketWrapper\Teams;
$teams = new Teams();
$teams->getUsersInTeam();
Get teams profile
use BitbucketWrapper\Teams;
$teams = new Teams();
$teams->getTeamProfile();
Get Teams followers
use BitbucketWrapper\Teams;
$teams = new Teams();
$teams->getTeamFollowers();
Get Team members
use BitbucketWrapper\Teams;
$teams = new Teams();
$teams->getMembers();
Get current User
use BitbucketWrapper\User;
$user = new User();
$user->get();