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.0(5mo ago)019.8k↓23.1%2[1 PRs](https://github.com/opay/lib.php-linting-tools/pulls)1MITPHPPHP ^8.0

Since Sep 28Pushed 5mo 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 1mo ago

READMEChangelog (10)Dependencies (4)Versions (16)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

47

—

FairBetter than 94% of packages

Maintenance71

Regular maintenance activity

Popularity27

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 71.2% 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 ~83 days

Recently: every ~169 days

Total

15

Last Release

161d 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)")[![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

[phpcompatibility/php-compatibility

A set of sniffs for PHP\_CodeSniffer that checks for PHP cross-version compatibility.

2.3k74.3M1.3k](/packages/phpcompatibility-php-compatibility)[mayflower/mo4-coding-standard

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

17508.3k5](/packages/mayflower-mo4-coding-standard)[automattic/vipwpcs

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

25510.2M145](/packages/automattic-vipwpcs)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[suin/phpcs-psr4-sniff

PHP\_CodeSniffer sniff that checks class name matches PSR-4 project structure.

271.7M16](/packages/suin-phpcs-psr4-sniff)

PHPackages © 2026

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