PHPackages                             bigbank/phpcs - 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. bigbank/phpcs

ActiveLibrary[Testing &amp; Quality](/categories/testing)

bigbank/phpcs
=============

Bigbank rules for phpcs

2.1.0(10y ago)29.7k1PHPPHP &gt;=5.6

Since Aug 25Pushed 7y ago3 watchersCompare

[ Source](https://github.com/bigbank-as/phpcs)[ Packagist](https://packagist.org/packages/bigbank/phpcs)[ RSS](/packages/bigbank-phpcs/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

Custom Rule Set For PHP\_CodeSniffer
====================================

[](#custom-rule-set-for-php_codesniffer)

[![Latest Stable Version on Packagist](https://camo.githubusercontent.com/db7990d464f5c51eda1b95979e38a523a4b1843ed42598ae721c9057cf78a13c/68747470733a2f2f706f7365722e707567782e6f72672f62696762616e6b2f70687063732f762f737461626c65)](https://packagist.org/packages/bigbank/phpcs)[![Software License](https://camo.githubusercontent.com/c7533dbcef034951e610c37b2f001be5c7aced7476306f22e5d1f999e579b4de/68747470733a2f2f706f7365722e707567782e6f72672f62696762616e6b2f70687063732f6c6963656e7365)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/7afba745a977158ebb210292d6ddbf0d3a5439ca4363f3d349fcb32114370dce/68747470733a2f2f706f7365722e707567782e6f72672f62696762616e6b2f70687063732f646f776e6c6f616473)](https://packagist.org/packages/bigbank/phpcs)

[PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) is a PHP script that tokenizes PHP files to detect violations of a defined coding standard. It is an essential development tool that ensures your code remains clean and consistent. It can also help prevent some common semantic errors made by developers.

This is a custom PHP\_CodeSniffer standard for [Bigbank](https://bigbank.eu), based on and compatible with [PSR-2](http://www.php-fig.org/psr/psr-2).

Installing
----------

[](#installing)

### Standalone

[](#standalone)

Usage by IDE-s or manually from the CLI.

- Clone the repository
- Install Composer dependencies: `composer install`

You should now be able to run `phpcs` from the command line:

```
$ vendor/bin/phpcs --standard=src/CodeSniffer/Standards/Bigbank

```

#### PhpStorm Integration

[](#phpstorm-integration)

- Set the path to the `phpcs` executable: *File -&gt; Settings -&gt; PHP -&gt; Code Sniffer*. Set it to `/vendor/bin/phpcs`
- Activate the `phpcs` inspection (per project): *File -&gt; Settings -&gt; Inspections -&gt; PHP -&gt; PHP Code Sniffer validation*. Tick the checkbox to activate the inspection. Set the coding standard as Custom and select the standard directory: `/src/CodeSniffer/Standards/Bigbank`.

PhpStorm will now automatically inspect your code and highlight the lines where errors are found. You can also run inspections on custom scopes by using *Code -&gt; Inspect Code*.

### CI Server

[](#ci-server)

Usage by automated tools such as Travis or Bamboo.

- Require `bigbank/phpcs` in your `composer.json` `require-dev` section
- Configure the CI server to run `phpcs` as part of its static analysis

Suppressing Warnings
--------------------

[](#suppressing-warnings)

You can manually mark parts of the code as ignored by phpcs with annotations.

- `@codingStandardsIgnoreStart`
- `@codingStandardsIgnoreEnd`
- `@codingStandardsIgnoreFile` - marks the entire file as ignored

Fixing Errors Automatically
---------------------------

[](#fixing-errors-automatically)

It is possible to fix some errors (for example, no empty line at the end of the file) automatically, in bulk (for dozens of files). For more, read [Fixing Errors Automatically](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically).

Links
-----

[](#links)

- [PHP Code Sniffer Documentation](https://github.com/squizlabs/PHP_CodeSniffer/wiki)
- [PhpStorm: Using PHP Code Sniffer Tool](http://www.jetbrains.com/phpstorm/webhelp/using-php-code-sniffer-tool.html)

Change log
----------

[](#change-log)

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

License
-------

[](#license)

PHP\_CodeSniffer is developed and owned by [Squiz Labs](https://github.com/squizlabs/PHP_CodeSniffer). This custom standard is licensed under the Apache 2.0 License (Apache-2.0). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

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 ~74 days

Recently: every ~112 days

Total

8

Last Release

3759d ago

Major Versions

1.0.5 → 2.0.02014-11-21

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

standardsphpcsstatic analysisCode stylebigbank

### Embed Badge

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

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

###  Alternatives

[wp-coding-standards/wpcs

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

2.7k42.5M1.6k](/packages/wp-coding-standards-wpcs)[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.

21830.6M587](/packages/phpcompatibility-phpcompatibility-wp)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[phpcsstandards/phpcsextra

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

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

CodeSniffer ruleset for the Symfony 2+ coding standard

40611.1M275](/packages/escapestudios-symfony2-coding-standard)[sirbrillig/phpcs-variable-analysis

A PHPCS sniff to detect problems with variables.

14448.5M97](/packages/sirbrillig-phpcs-variable-analysis)

PHPackages © 2026

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