PHPackages                             swisnl/phpstan-bitbucket - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. swisnl/phpstan-bitbucket

ActivePhpstan-extension[Testing &amp; Quality](/categories/testing)

swisnl/phpstan-bitbucket
========================

PHPStan error formatter for Bitbucket Pipeline Reports

0.4.0(1y ago)6185.0k—1%23MITPHPPHP ^8.0

Since Oct 20Pushed 1y agoCompare

[ Source](https://github.com/swisnl/phpstan-bitbucket)[ Packagist](https://packagist.org/packages/swisnl/phpstan-bitbucket)[ Docs](https://github.com/swisnl/phpstan-bitbucket)[ RSS](/packages/swisnl-phpstan-bitbucket/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (5)Used By (3)

PHPStan Bitbucket error formatter
=================================

[](#phpstan-bitbucket-error-formatter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4fb7edbe12ef037734ff24dd1cdb2878cebe5476e6f38ac0154a8eff7dcb7091/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737769736e6c2f7068707374616e2d6269746275636b65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swisnl/phpstan-bitbucket)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Buy us a tree](https://camo.githubusercontent.com/cec0a9b35a1c3235bdbe0d13ea8fbd866a23e30280ad6ca27078c1fd4ac1b709/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://plant.treeware.earth/swisnl/phpstan-bitbucket)[![Total Downloads](https://camo.githubusercontent.com/5fe7423a53d0015cbc94a2fcccfe33a65e2ab0e0511d0a7c951055e709094a9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737769736e6c2f7068707374616e2d6269746275636b65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swisnl/phpstan-bitbucket)[![Maintained by SWIS](https://camo.githubusercontent.com/af0a8c6f2ea8b54aca03b7ca581e67c034ad17066e75fffeb068e8d5341bbae1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2546302539462539412538302d6d61696e7461696e65642532306279253230535749532d2532333037333741392e7376673f7374796c653d666c61742d737175617265)](https://www.swis.nl)

This PHPStan error formatter will add annotations in Bitbucket, for example in pull requests, similar to the built-in GitHub formatting.

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

[](#installation)

Via Composer

```
composer require --dev swisnl/phpstan-bitbucket
```

If you also have [phpstan/extension-installer](https://github.com/phpstan/extension-installer) installed, then you're all set!

 Manual installationIf you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:

```
includes:
    - vendor/swisnl/phpstan-bitbucket/extension.neon
```

Usage
-----

[](#usage)

To use this custom error formatter you need to run PHPStan with `--error-format=bitbucket` option. For example:

```
vendor/bin/phpstan analyse src -l8 --error-format=bitbucket
```

Screenshots
-----------

[](#screenshots)

[![Annotations](/img/annotations.png)](/img/annotations.png)[![Report](/img/report.png)](/img/report.png)

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

This package is a fork of [alxt/phpstan-bitbucket](https://github.com/modprobe/phpstan-bitbucket) with some updates.

- [Alexander Timmermann](https://github.com/modprobe)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/swisnl/phpstan-bitbucket) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

SWIS ❤️ Open Source
-------------------

[](#swis-heart-open-source)

[SWIS](https://www.swis.nl) is a web agency from Leiden, the Netherlands. We love working with open source software.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance42

Moderate activity, may be stable

Popularity40

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.3% 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 ~409 days

Total

3

Last Release

473d ago

PHP version history (2 changes)0.2.0PHP ^7.4|^8.0

0.3.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8734305?v=4)[SWIS](/maintainers/swisnl)[@swisnl](https://github.com/swisnl)

---

Top Contributors

[![JaZo](https://avatars.githubusercontent.com/u/3475007?v=4)](https://github.com/JaZo "JaZo (25 commits)")[![modprobe](https://avatars.githubusercontent.com/u/4273389?v=4)](https://github.com/modprobe "modprobe (2 commits)")[![bbrala](https://avatars.githubusercontent.com/u/3294970?v=4)](https://github.com/bbrala "bbrala (1 commits)")

---

Tags

bitbuckethacktoberfestphpstantestingPHPStanbitbucketpipelinereportserror-formatter

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/swisnl-phpstan-bitbucket/health.svg)

```
[![Health](https://phpackages.com/badges/swisnl-phpstan-bitbucket/health.svg)](https://phpackages.com/packages/swisnl-phpstan-bitbucket)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[ekino/phpstan-banned-code

Detected banned code using PHPStan

2925.6M92](/packages/ekino-phpstan-banned-code)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

3462.2M52](/packages/shipmonk-dead-code-detector)[calebdw/larastan-livewire

A Larastan / PHPStan extension for Livewire.

43482.4k3](/packages/calebdw-larastan-livewire)[mrpunyapal/peststan

PHPStan extension for Pest PHP testing framework

291.5k4](/packages/mrpunyapal-peststan)

PHPackages © 2026

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