PHPackages                             renttek/bitbucket-webhook-types - 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. renttek/bitbucket-webhook-types

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

renttek/bitbucket-webhook-types
===============================

Library to convert bitbucket webhook payloads to typed objects

0.0.1(3y ago)02MITPHPPHP 8.2.\*

Since Jun 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/renttek/bitbucket-webhook-types)[ Packagist](https://packagist.org/packages/renttek/bitbucket-webhook-types)[ RSS](/packages/renttek-bitbucket-webhook-types/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (16)Versions (2)Used By (0)

Bitbucket Webhook Types
=======================

[](#bitbucket-webhook-types)

This library provides a converter as well as value objects for the bitbucket webhook payloads.

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

[](#installation)

The module can be asily installed using composer:

```
composer require renttek/bitbucket-webhook-types

```

Usage
-----

[](#usage)

```
$pullRequestCreatedPayload = '';

$converter = new \Renttek\BitbucketWebhookTypes\Converter();

$pullRequestCreated = $converter->fromJson(
    \Renttek\BitbucketWebhookTypes\EventPayload\PullrequestCreated::class,
    $pullRequestCreatedPayload
)
```

### Using a custom mapper/configuration

[](#using-a-custom-mapperconfiguration)

The converter is built using `cuyz/valinor` and if you want to use a custom mapper, instead of the default one, you can pass a mapper to the constructor of `\Renttek\BitbucketWebhookTypes\Converter`:

```
$pullRequestCreatedPayload = '';

$myAwesomeMapper = (new MapperBuilder())
    ->supportDateFormats('Y-m-d\TH:i:s.uP')
    ->infer(
        ...
    )
    ->registerConstructor(
        ...
    )
    ->allowSuperfluousKeys()
    ->mapper();

$converter = new \Renttek\BitbucketWebhookTypes\Converter($myAwesomeMapper);

$pullRequestCreated = $converter->fromJson(
    \Renttek\BitbucketWebhookTypes\EventPayload\PullrequestCreated::class,
    $pullRequestCreatedPayload
)
```

Credits &amp; thank you
-----------------------

[](#credits--thank-you)

I'd like to thank Team CuyZ and all the contributors for valinor!

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1127d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1931090?v=4)[Julian](/maintainers/renttek)[@renttek](https://github.com/renttek)

---

Top Contributors

[![renttek](https://avatars.githubusercontent.com/u/1931090?v=4)](https://github.com/renttek "renttek (1 commits)")

###  Code Quality

Static AnalysisPHPStan, Psalm

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/renttek-bitbucket-webhook-types/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M733](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k49](/packages/ecotone-ecotone)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)

PHPackages © 2026

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