PHPackages                             opay-dev/php-linting-tools - 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. opay-dev/php-linting-tools

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

opay-dev/php-linting-tools
==========================

PHP linting rules set used by Opay developers

v1.6.1(4mo ago)021.7k↓14.2%2[1 PRs](https://github.com/opay/lib.php-linting-tools/pulls)1MITPHPPHP ^8.0

Since Sep 28Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/opay/lib.php-linting-tools)[ Packagist](https://packagist.org/packages/opay-dev/php-linting-tools)[ RSS](/packages/opay-dev-php-linting-tools/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (8)Versions (17)Used By (1)

[![OPAY](https://avatars.githubusercontent.com/u/24718711?s=128)](https://www.opay.eu)

PHP linting rules
=================

[](#php-linting-rules)

This is PHP linting tools and rules set used by "OPAY solutions" developers to ensure we deliver maintainable and the highest quality code.

The main point of this tools set is to ensure developers write [PSR compliant code](https://www.php-fig.org/psr/). Many [additional rules](./OpaySniffs/ruleset.xml) are added to increase code quality and readability. None of our code goes to production if at least one code style error or warning is discovered.

Package content
---------------

[](#package-content)

- [friendsofphp/php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) - Powerful PHP Coding Standards tool
- [squizlabs/php\_codesniffer](https://github.com/squizlabs/PHP_CodeSniffer) - Another powerful and customizable PHP Coding Standards tool
- [slevomat/coding-standard](https://github.com/slevomat/coding-standard) - Set of additional linting rules for PHP CodeSniffer
- Custom Opay linting rules for PHP CodeSniffer

`PHP-CS-Fixer` and `PHP_CodeSniffer` are both PHP code linting tools that complement each other allowing developers to write the highest quality code.

Installation &amp; usage
------------------------

[](#installation--usage)

Install as a development dependency using composer:

```
$ composer require --dev opay-dev/php-linting-tools

```

Run tools to validate your files:

```
vendor/bin/php-cs-fixer fix path/to/files --dry-run --verbose
vendor/bin/phpcs -p --standard=OpaySniffs path/to/files

```

Run tools to fix your files automatically *(not all files can be fixed, some may require manual fixing)*:

```
vendor/bin/php-cs-fixer fix path/to/files --verbose
vendor/bin/phpcbf -p --standard=OpaySniffs path/to/files

```

Setup custom config and run tools to validate your files:

```
vendor/bin/php-cs-fixer fix --config="ConfigExamples/custom_phpcsfixer_config.php" --dry-run --verbose
vendor/bin/phpcs -p --standard="ConfigExamples/custom_phpcs_config.xml"

```

Setup custom config and run tools to fix your files automatically:

```
vendor/bin/php-cs-fixer fix --config="ConfigExamples/custom_phpcsfixer_config.php" --verbose
vendor/bin/phpcbf -p --standard="ConfigExamples/custom_phpcs_config.xml"

```

Configure [bash script](./lint) or add script to `composer.json` and run it with single command `composer lint`:

```
{
    "lint": [
        "vendor/bin/php-cs-fixer fix path/to/files --dry-run --verbose",
        "vendor/bin/phpcs -p --standard=OpaySniffs path/to/files"
    ]
}
```

Licence
-------

[](#licence)

This is set of tools created by different developers teams and collected to one set by Opay developers with additional rules added. This package can be used under MIT licence as long as it does not violate the licenses of other developers.

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance75

Regular maintenance activity

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 68.5% 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 ~85 days

Recently: every ~196 days

Total

16

Last Release

133d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/611efe14e168e8f06604a52baad1f1b06431476774a93ee6a23111b7d8ea80db?d=identicon)[opay-dev](/maintainers/opay-dev)

---

Top Contributors

[![vitalij-vladimirov](https://avatars.githubusercontent.com/u/45896500?v=4)](https://github.com/vitalij-vladimirov "vitalij-vladimirov (37 commits)")[![Arturas-B112](https://avatars.githubusercontent.com/u/126097522?v=4)](https://github.com/Arturas-B112 "Arturas-B112 (5 commits)")[![PauliusOpay](https://avatars.githubusercontent.com/u/212329158?v=4)](https://github.com/PauliusOpay "PauliusOpay (4 commits)")[![Kilmanas](https://avatars.githubusercontent.com/u/97046676?v=4)](https://github.com/Kilmanas "Kilmanas (3 commits)")[![vaivasav](https://avatars.githubusercontent.com/u/55126002?v=4)](https://github.com/vaivasav "vaivasav (2 commits)")[![ignasopay](https://avatars.githubusercontent.com/u/43540822?v=4)](https://github.com/ignasopay "ignasopay (2 commits)")[![vmarijus](https://avatars.githubusercontent.com/u/14919088?v=4)](https://github.com/vmarijus "vmarijus (1 commits)")

---

Tags

psrstandardsphpcsPHP\_CodeSnifferlintsniffslinting

### Embed Badge

![Health badge](/badges/opay-dev-php-linting-tools/health.svg)

```
[![Health](https://phpackages.com/badges/opay-dev-php-linting-tools/health.svg)](https://phpackages.com/packages/opay-dev-php-linting-tools)
```

###  Alternatives

[mayflower/mo4-coding-standard

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

17542.0k7](/packages/mayflower-mo4-coding-standard)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.2M36](/packages/yoast-yoastcs)[drupal/coder

Coder is a library to review Drupal code.

3046.8M629](/packages/drupal-coder)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1792.8k7](/packages/infinum-eightshift-coding-standards)[moxio/php-codesniffer-sniffs

Custom sniffs for PHP\_CodeSniffer

18298.4k5](/packages/moxio-php-codesniffer-sniffs)[redaxo/php-cs-fixer-config

php-cs-fixer config for REDAXO

10107.2k22](/packages/redaxo-php-cs-fixer-config)

PHPackages © 2026

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