Skip to content

BobWez98/bitbucket-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Bitbucket API wrapper

Installation

composer require bobwez98/bitbucket-wrapper
php artisan vendor:publish --provider="BitbucketWrapper\BitbucketWrapperServiceProvider"

Usage

Generate an Bitbucket app password here. Put your Bitbucket App credentials in the applications .env file.

BB_USER=
BB_APP_PASSWORD=
BB_ACCOUNT_NAME=

Documentation

Repositories

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();

Commits

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);

Pullrequests

Get all users pullrequests

use BitbucketWrapper\PullRequest;

$pullrequest = new PullRequest();

$pullrequest->getUsersPullRequests($username);

Teams

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();

User

Get current User

use BitbucketWrapper\User;

$user = new User();

$user->get();

Credits

License

MIT