PHPackages                             pbweb/pbweb-coding-standard - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. pbweb/pbweb-coding-standard

ActiveCoding-standard[PSR &amp; Standards](/categories/psr-standards)

pbweb/pbweb-coding-standard
===========================

PB Web Media coding standard

2.0(6y ago)01.4k1MITPHPPHP ^7.1

Since May 7Pushed 6y ago2 watchersCompare

[ Source](https://github.com/PBWebMedia/pbweb-coding-standard)[ Packagist](https://packagist.org/packages/pbweb/pbweb-coding-standard)[ RSS](/packages/pbweb-pbweb-coding-standard/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (5)Used By (1)

PB Web Media PHPCS coding standard
==================================

[](#pb-web-media-phpcs-coding-standard)

This is the PHPCS ruleset we use. It is based on the Symfony2 coding standard provided by Escape Studios and features:

- Rule which requires spaces around string concat (`.`) operator
- Rule which requires spaces around unary not (`!`) operator

It also disables some rules which causes the following:

- Space after opening bracket are now allowed (conflicts with spaces around unary not rule, eg.: `some_func( ! $value)`)
- Function comments are no longer required (PHP7 type hinting fixes this)
- No need to order class methods by scope
- Multi line function declaration may be on the following line

Install globally via composer:
------------------------------

[](#install-globally-via-composer)

Install using:

```
composer global require pbweb/pbweb-coding-standard

```

And configure phpcs to use the Pbweb standard

```
phpcs --config-set installed_paths ${HOME}/.composer/vendor/pbweb/pbweb-coding-standard/,${HOME}/.composer/vendor/escapestudios/symfony2-coding-standard/
phpcs --config-set default_standard Pbweb

```

Install in your project only:
-----------------------------

[](#install-in-your-project-only)

Install using:

```
composer require pbweb/pbweb-coding-standard

```

### Phing configuration

[](#phing-configuration)

Example phing target:

```

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~543 days

Total

4

Last Release

2441d ago

Major Versions

1.1.1 → 2.02019-10-24

### Community

Maintainers

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

---

Top Contributors

[![DemonTPx](https://avatars.githubusercontent.com/u/2570835?v=4)](https://github.com/DemonTPx "DemonTPx (8 commits)")

---

Tags

phpcssymfonycode snifferCoding Standard

### Embed Badge

![Health badge](/badges/pbweb-pbweb-coding-standard/health.svg)

```
[![Health](https://phpackages.com/badges/pbweb-pbweb-coding-standard/health.svg)](https://phpackages.com/packages/pbweb-pbweb-coding-standard)
```

###  Alternatives

[escapestudios/symfony2-coding-standard

CodeSniffer ruleset for the Symfony 2+ coding standard

40611.4M293](/packages/escapestudios-symfony2-coding-standard)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17524.8k7](/packages/mayflower-mo4-coding-standard)[orisai/coding-standard

Strict PHP coding standard

19197.7k68](/packages/orisai-coding-standard)[phpcompatibility/phpcompatibility-all

A set of rulesets for PHP\_CodeSniffer to check for PHP cross-version compatibility issues and opportunities to modernize code in PHP projects.

1365.8k](/packages/phpcompatibility-phpcompatibility-all)

PHPackages © 2026

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