PHPackages                             eoneopay/standards - 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. eoneopay/standards

Abandoned → [eonx-com/standards](/?search=eonx-com%2Fstandards)Library[PSR &amp; Standards](/categories/psr-standards)

eoneopay/standards
==================

Library for enforcing EoneoPay coding standards against a code base

v1.0.2(6y ago)12.9k[1 PRs](https://github.com/loyaltycorp/standards/pulls)17BSD-3-ClausePHPPHP &gt;=7.1CI failing

Since Jul 11Pushed 6y ago5 watchersCompare

[ Source](https://github.com/loyaltycorp/standards)[ Packagist](https://packagist.org/packages/eoneopay/standards)[ RSS](/packages/eoneopay-standards/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (6)Used By (17)

EoneoPay Standards Library
==========================

[](#eoneopay-standards-library)

This library provides the tools required to check a codebase against the EoneoPay coding standards.

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

[](#installation)

This library is installed via composer:

```
composer require --dev eonx-com/standards dev-master

```

### Requirements

[](#requirements)

This library requires a minimum of PHP 5.6.

### Compatible tools

[](#compatible-tools)

This library will automatically run the following packages if they are found on the system. They can be installed via composer or available globally, e.g. installed via brew.

PackagePurpose[Copy/Paste Detector](https://github.com/sebastianbergmann/phpcpd)Detect code duplication[Paratest](https://github.com/paratestphp/paratest)Run unit tests in parallel[PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)Check code style[PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)Standardise code style[PHP Mess Detector](https://phpmd.org)Check coding best practices[PHPStan](https://github.com/phpstan/phpstan)Static analysis of code to detect potential errors[PHPUnit](https://phpunit.de)Run unit tests[Security Checker](https://security.symfony.com/)Check project's dependencies for known vulnerabilities### Recommended extensions

[](#recommended-extensions)

It's recommended you also install the following extensions for PHP.

ExtensionPurpose[Xdebug](https://xdebug.org)Calculate code coverage of unit testsChecking your codebase
----------------------

[](#checking-your-codebase)

You can simply run `es` from the vendor directory to check your code base, any packages which are installed will be run automatically.

```
bash vendor/bin/es

```

Any php files in the `app/`, `src/` or `tests/` directories of your application or library will be checked by default. If change detection is used a partial scan will be performed where possible.

### Forcing a full scan

[](#forcing-a-full-scan)

You may want to run a full scan while using change detection. You can pass the `-f` flag to force a full scan.

```
bash vendor/bin/es -f

```

### Running a verbose scan

[](#running-a-verbose-scan)

You may want to run a scan which shows all actions taken and their outcomes. You can pass the `-v` flag to force a verbose scan.

```
bash vendor/bin/es -v

```

Configuration
-------------

[](#configuration)

You can fine tune the configuration by adding an `standards.cfg` file to the root directory of your application or library and adjusting the following variables:

```
# Comma separated paths to files to check, absolute or relative to working directory
PATHS=app,src,tests

########## CHANGE DETECTION CONFIGURATION ##########
# The primary branch for your repository which feature branches are merged into
CD_PRIMARY_BRANCH=development
# Branches which a full scan of the paths above should be performed
CD_FULL_SCAN_BRANCHES=master,${CD_PRIMARY_BRANCH}

########## PHP COPY/PASTE DETECTOR CONFIGURATION ##########
# Whether or not to run php copy/paste detector, will run if phpcpd binary is found
PHPCPD_ENABLED=true
# A comma seperated list of regexes to exclude from copy/paste detection
PHPCPD_EXCLUDE_REGEX=
# The minimum number of lines which need to be duplicated to count as copy/paste
PHPCPD_MIN_LINES=5
# The minimum number of duplicated tokens within a line to count as copy/paste
PHPCPD_MIN_TOKENS=70

########## PHP CODE SNIFFER CONFIGURATION ##########
# Whether or not to run php code sniffer, will run if phpcs binary is found
PHPCS_ENABLED=true
# The standards to compare code against, will be ignored if phpcs.xml exists
PHPCS_STANDARDS=vendor/eoneopay/standards/php-code-sniffer/EoneoPay
# Whether to show the code sniffs name on report output
PHPCS_SHOW_SNIFF_NAME=true

########## PHP CS FIXER CONFIGURATION ##########
# Whether or not to run php code sniffer, will run if phpcs binary is found
PHPCS_FIXER_ENABLED=true
# Default rules to be used when no .php_cs file exists in the project
PHPCS_FIXER_RULES='@PSR2,trailing_comma_in_multiline_array'

########## PHP MESS DETECTOR CONFIGURATION ##########
# Whether or not to run php mess destector, will run if phpmd binary is found
PHPMD_ENABLED=true
# The rulesets to use to determine issues, will be ignored if phpmd.xml exists
PHPMD_RULESETS=cleancode,codesize,controversial,design,naming,unusedcode

########## PHPSTAN CONFIGURATION ##########
# Whether or not to run phpstan, will run if phpstan binary is found
PHPSTAN_ENABLED=true
# The reporting level, 1 = loose, 7 = strict
PHPSTAN_REPORTING_LEVEL=7

########## PHPUNIT CONFIGURATION ##########
# Whether or not to run phpunit, will run if paratest or phpunit binary is found
PHPUNIT_ENABLED=true
# Whether or not to enable code coverage checks
PHPUNIT_ENABLE_CODE_COVERAGE=true
# The minimum percentage of coverage to have, will be ignored if coverage check is disabled
PHPUNIT_COVERAGE_MINIMUM_LEVEL=90
# The testsuites to run with coverage
PHPUNIT_COVERAGE_TEST_SUITES=
# The path to output junit parseable log file, can be relative, will be ignored if left blank
PHPUNIT_JUNIT_LOG_PATH=
# The directory containing tests, will be ignored it phpunit.xml exists in working directory
PHPUNIT_TEST_DIRECTORY=tests
# The test suites to run, will run all tests if not specified
PHPUNIT_TEST_SUITES=

########## SECURITY CHECKER CONFIGURATION ##########
# Whether or not to run security-checker, will run if security-checker binary is found
SECURITY_CHECKER_ENABLED=true

```

### Tool configuration

[](#tool-configuration)

You can also configure individual tools by adding configuration files to the root directory of your application or library.

PackageFilename[Paratest](https://phpunit.de/manual/current/en/appendixes.configuration.html)phpunit.xml[PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml)phpcs.xml[PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer#usage).php\_cs[PHP Mess Detector](https://phpmd.org/documentation/creating-a-ruleset.html)phpmd.xml[PHPStan](https://github.com/phpstan/phpstan#configuration)phpstan.neon[PHPUnit](https://phpunit.de/manual/current/en/appendixes.configuration.html)phpunit.xml

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 81.8% 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 ~2 days

Total

4

Last Release

2397d ago

Major Versions

v0.1.2 → v1.0.22019-10-22

### Community

Maintainers

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

---

Top Contributors

[![merk](https://avatars.githubusercontent.com/u/278097?v=4)](https://github.com/merk "merk (9 commits)")[![edwardmurrell-loyaltycorp](https://avatars.githubusercontent.com/u/44623821?v=4)](https://github.com/edwardmurrell-loyaltycorp "edwardmurrell-loyaltycorp (1 commits)")[![natepage](https://avatars.githubusercontent.com/u/11576446?v=4)](https://github.com/natepage "natepage (1 commits)")

---

Tags

librarystandardseoneopay

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/eoneopay-standards/health.svg)

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

###  Alternatives

[symfony/translation-contracts

Generic abstractions related to translation

2.6k698.7M432](/packages/symfony-translation-contracts)[symfony/contracts

A set of abstractions extracted out of the Symfony components

3.9k64.6M103](/packages/symfony-contracts)[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)[automattic/vipwpcs

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

25510.2M145](/packages/automattic-vipwpcs)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

217736.5k29](/packages/wptrt-wpthemereview)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)

PHPackages © 2026

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