Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Bitbucket Api Laravel Package

gentle/bitbucket-api

PHP Bitbucket API wrapper (PHP 5.4+) using cURL and Buzz. Provides a simple client for interacting with Bitbucket endpoints, with full documentation and optional PHPUnit test suite. MIT licensed.

View on GitHub
Deep Wiki
Context7

layout: default permalink: /examples/repositories/repository.html title: Repository

Repository

Allows you to create a new repository or edit a specific one.

Prepare:

{% include auth.md var_name="repo" class_ns="Repositories\Repository" %}

Get information associated with an individual repository: (API 2.0)

$repo->get($account_name, $repo_slug);

Create a new repository: (API 1.0)

NOTE: API 1.0 endpoint for repository creation has been deprecated, so please use the new API 2.0 endpoint described bellow.

$repo->create($repo_slug, array(
    'description'   => 'My super secret project.',
    'language'      => 'php',
    'is_private'    => true
));

Create a new repository: (API 2.0)

$repo->create($account_name, $repo_slug, array(
    'scm'               => 'git',
    'description'       => 'My super secret project.',
    'language'          => 'php',
    'is_private'        => true,
    'fork_policy'       => 'no_public_forks',
));

Update an existing repository:

$repo->update($account_name, $repo_slug, array(
    'description'   => 'My super secret project !!!',
    'language'      => 'php',
    'is_private'    => true
));

Delete a repository: (API 2.0)

$repo->delete($account_name, $repo_slug);

Get the list of accounts watching a repository: (API 2.0)

$repo->watchers($account_name, $repo_slug);

Get the list of repository forks: (API 2.0)

$repo->forks($account_name, $repo_slug);

Fork a repository:

$repo->fork($account_name, $repo_slug, $fork_slug, array(
    'is_private' => true
));

Get a list of branches associated with a repository:

$repo->branches($account_name, $repo_slug);

Get the repository's main branch:

$repo->branch($account_name, $repo_slug);

Get the repository manifest:

$repo->manifest($account_name, $repo_slug, 'develop');

Get a list of tags:

$repo->tags($account_name, $repo_slug);

Get the raw content of a file or directory:

$repo->raw($account_name, $repo_slug, '1bc8345', 'app/models/core.php')

Get the history of a file in a changeset

$repo->filehistory($account_name, $repo_slug, '1bc8345', 'app/models/core.php')

Related:

  • [Authentication]({{ site.url }}/examples/authentication.html)
  • BB Wiki
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
craftcms/url-validator
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony