PHPackages                             swisnl/phpcs-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/phpcs-bitbucket

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

swisnl/phpcs-bitbucket
======================

PHP\_CodeSniffer reporter for Bitbucket Pipeline Reports

0.1.0(2y ago)19.3k↓21.4%1MITPHPPHP ^8.0

Since Dec 22Pushed 2y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

PHP\_CodeSniffer Bitbucket error reporter
=========================================

[](#php_codesniffer-bitbucket-error-reporter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/00714eb16eb87554ef8129ca7b28a9ce37e81da263e69fd3eb0312ec86511acf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737769736e6c2f70687063732d6269746275636b65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swisnl/phpcs-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/phpcs-bitbucket)[![Total Downloads](https://camo.githubusercontent.com/2262ed0fc8dbec48b2096c7f2c23ca3dac5d27be0fec9c2539c35ef38c059249/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737769736e6c2f70687063732d6269746275636b65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swisnl/phpcs-bitbucket)[![Maintained by SWIS](https://camo.githubusercontent.com/af0a8c6f2ea8b54aca03b7ca581e67c034ad17066e75fffeb068e8d5341bbae1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2546302539462539412538302d6d61696e7461696e65642532306279253230535749532d2532333037333741392e7376673f7374796c653d666c61742d737175617265)](https://www.swis.nl)

This PHP\_CodeSniffer error reporter will add annotations in Bitbucket, for example in pull requests.

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

[](#installation)

Via Composer

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

Usage
-----

[](#usage)

This reporter can only be used within a Bitbucket Pipeline, so the recommended way to use it is via the command-line interface in your `bitbucket-pipelines.yml`:

```
phpcs --report="\Swis\PHP_CodeSniffer\Reporter\BitbucketReporter"
```

Alternatively you can specify the reporter in `.phpcs.xml`:

```

```

 Class not found errorIf the reporter class can't be found, you might need to specify the path to the Composer autoloader.

Via command-line interface:

```
phpcs --bootstrap=vendor/autoload.php
```

Or using config:

```

    vendor/autoload.php

```

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)

- [Jasper Zonneveld](https://github.com/JaZo)
- [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/phpcs-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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

878d ago

### 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 (4 commits)")

---

Tags

bitbuckethacktoberfestphpcsphpcstestingPHP\_CodeSnifferbitbucketpipelinereportsreporter

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

598161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[wp-coding-standards/wpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

2.8k42.5M1.6k](/packages/wp-coding-standards-wpcs)[phpcsstandards/phpcsextra

A collection of sniffs and standards for use with PHP\_CodeSniffer.

10324.3M44](/packages/phpcsstandards-phpcsextra)[escapestudios/symfony2-coding-standard

CodeSniffer ruleset for the Symfony 2+ coding standard

40611.1M275](/packages/escapestudios-symfony2-coding-standard)[phpcompatibility/phpcompatibility-wp

A ruleset for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.

22130.6M587](/packages/phpcompatibility-phpcompatibility-wp)

PHPackages © 2026

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