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(2y ago)02MITPHPPHP 8.2.\*

Since Jun 1Pushed 2y 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 1mo ago

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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1080d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/91426e74250adada5b0db6113d4c4c7b10cfcbffc6532c79092089051b399ffd?d=identicon)[renttek](/maintainers/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

[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k136](/packages/symfony-ai-platform)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[sylius/promotion

Flexible promotion management for PHP applications.

28477.8k9](/packages/sylius-promotion)[setono/sylius-feed-plugin

Plugin to generate feeds within the Sylius ecommerce platform

26458.2k](/packages/setono-sylius-feed-plugin)

PHPackages © 2026

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