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/branch-restrictions.html title: Branch restrictions

Branch restrictions

Manage branch restrictions on a repository

Prepare:

{% include auth.md var_name="restrictions" class_ns="Repositories\BranchRestrictions" %}

Get the information associated with a repository's branch restrictions: (API 2.0)

$restrictions->all($account_name, $repo_slug);

Creates restrictions: (API 2.0)

Restrict push access to any branches starting with joe-and-mary- only to users joe and mary:

$restrictions->create($account_name, $repo_slug, array(
    'kind'      => 'push',
    'pattern'   => 'joe-and-mary-*',
    'users'     => array(
        array('username' => 'joe'),
        array('username' => 'mary')
    )
));

Get a specific restriction: (API 2.0)

$restrictions->get($account_name, $repo_slug, $restrictionID);

Update a specific restriction: (API 2.0)

$restrictions->update($account_name, $repo_slug, $restrictionID, array(
    'users' => array(
        array('username' => 'joe'),
        array('username' => 'mary'),
        array('username' => 'joe-work')
    )
));

Delete a specific restriction: (API 2.0)

$restrictions->delete($account_name, $repo_slug, $restrictionID);

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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky