PHPackages                             denx-b/bitbucket-webhook - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. denx-b/bitbucket-webhook

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

denx-b/bitbucket-webhook
========================

Simple webhook handling bitbucket

0.6(5y ago)0321MITPHPPHP &gt;=7.0.0

Since Feb 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/denx-b/bitbucket-webhook-handler)[ Packagist](https://packagist.org/packages/denx-b/bitbucket-webhook)[ RSS](/packages/denx-b-bitbucket-webhook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

Bitbucket - Webhook
===================

[](#bitbucket---webhook)

The library makes it easy to handle [bitbucket webhooks](https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/#Trigger-webhooks).

Example
-------

[](#example)

```
use Dbogdanoff\Bitbucket;

// Repository events (Push, Fork, Updated, Commit, ...)
$repo = new Bitbucket\Repo();
$push = $repo->getPush(); // array
$fork = $repo->getFork(); // array
$branch = $repo->getBranch(); // string
$changes = $repo->getChanges(); // array — 'changes' from root or 'changes' key from 'push'
$authorNickName = $repo->getAuthorNickName(); // string

// Issue events (Created, Updated, Comment created)
$issue = new Bitbucket\Issue();
$issue = $issue->getIssue(); // array

// Pull request events (Created, Updated, Change, ...)
$pullRequest = new Bitbucket\PullRequest();
$title = $pullRequest->getTitle(); // string
$link = $pullRequest->getLink(); // string
$data = $pullRequest->getPullRequest(); // array
$author = $pullRequest->getAuthor(); // array
$authorNickName = $pullRequest->getAuthorNickName(); // string
$commentText = $pullRequest->getCommentText(); // string
$commentInlinePath = $pullRequest->getCommentInlinePath(); // string
$commentInlineNumber = $pullRequest->getCommentInlineNumber(); // string

// All objects extended from Bitbucket\Base()
$actor = $repo->getActor(); // array
$nickname = $repo->getNickName(); // string
$repository = $repo->getRepository(); // array
$projectName = $repo->getProjectName(); // string
$eventType = $repo->getEventKey(); // string — repo:push, repo:updated, pullrequest:created, ...
$rawData = $repo->getRawData(); // array — full data
```

### Exceptions

[](#exceptions)

```
// Bitbucket\Repo::__construct()
if (strpos($_SERVER['HTTP_X_EVENT_KEY'], 'repo:') === false) {
    throw new Exception('Invalid request type');
}

// Bitbucket\Issue::__construct()
if (strpos($_SERVER['HTTP_X_EVENT_KEY'], 'issue:') === false) {
    throw new Exception('Invalid request type');
}

// Bitbucket\PullRequest::__construct()
if (strpos($_SERVER['HTTP_X_EVENT_KEY'], 'pullrequest:') === false) {
    throw new Exception('Invalid request type');
}
```

Requirements
------------

[](#requirements)

Bitbucket - Webhook requires the following:

- PHP 7.0.0+

Installation
------------

[](#installation)

Bitbucket - Webhook is installed via [Composer](https://getcomposer.org/). To [add a dependency](https://getcomposer.org/doc/04-schema.md#package-links%3E) to bitbucket-webhook in your project, either

Run the following to use the latest stable version

```
    composer require denx-b/bitbucket-webhook
```

or if you want the latest master version

```
    composer require denx-b/bitbucket-webhook:dev-master
```

You can of course also manually edit your composer.json file

```
{
    "require": {
       "denx-b/bitbucket-webhook": "0.*"
    }
}
```

Documentation
=============

[](#documentation)

Manage webhooks
---------------

[](#manage-webhooks)

Events
------

[](#events)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

5

Last Release

1899d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a5f9f6fb94f80e3743be107451c9f85d28e476101517bd07b4c4d50ab80ddbbe?d=identicon)[dbogdanoff](/maintainers/dbogdanoff)

---

Top Contributors

[![denx-b](https://avatars.githubusercontent.com/u/3990426?v=4)](https://github.com/denx-b "denx-b (14 commits)")[![sorokinx](https://avatars.githubusercontent.com/u/86433619?v=4)](https://github.com/sorokinx "sorokinx (2 commits)")

### Embed Badge

![Health badge](/badges/denx-b-bitbucket-webhook/health.svg)

```
[![Health](https://phpackages.com/badges/denx-b-bitbucket-webhook/health.svg)](https://phpackages.com/packages/denx-b-bitbucket-webhook)
```

###  Alternatives

[benpickles/peity

Peity (sounds like deity) is a jQuery plugin that converts an element's content into a mini `&lt;svg&gt;` pie, donut, line or bar chart.

4.2k2.8k](/packages/benpickles-peity)[2amigos/yii2-grid-view-library

GridView Widget Extensions for Yii2.

56147.2k12](/packages/2amigos-yii2-grid-view-library)[zhuravljov/yii2-datetime-widgets

Datetime widgets for Yii2.

21118.6k3](/packages/zhuravljov-yii2-datetime-widgets)[smajti1/laravel-wizard

Wizard component for laravel.

409.2k](/packages/smajti1-laravel-wizard)[tivie/command

An utility library that harmonizes OS differences and executes external programs in a safer way

1455.3k1](/packages/tivie-command)[wedevelopnl/silverstripe-elemental-grid

Elemental grid module

1014.1k2](/packages/wedevelopnl-silverstripe-elemental-grid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
