PHPackages                             jparkinson1991/phpcodesniffer-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. [Testing &amp; Quality](/categories/testing)
4. /
5. jparkinson1991/phpcodesniffer-standards

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

jparkinson1991/phpcodesniffer-standards
=======================================

Custom PHP\_Codesniffer standards

1.4.0(4y ago)39.1k↓50%1GPL-3.0-or-laterPHP

Since May 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/JParkinson1991/phpcodesniffer-standards)[ Packagist](https://packagist.org/packages/jparkinson1991/phpcodesniffer-standards)[ RSS](/packages/jparkinson1991-phpcodesniffer-standards/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (10)Used By (1)

PHP\_CodeSniffer Standards
==========================

[](#php_codesniffer-standards)

This package provides custom and adapted [coding standards](#coding-standards)for use with [squizlabs/PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)

Coding Standards
----------------

[](#coding-standards)

The following standards are provided by this package

### [JPSR-12](docs/Standards/JPSR12/JPSR12.md)

[](#jpsr-12)

An adaptation of the [PSR-12](https://www.php-fig.org/psr/psr-12/) coding standard with some minor tweaks. [View Documentation](docs/Standards/JPSR12/JPSR12.md)

Getting Started
---------------

[](#getting-started)

Using the standards provided by this package is a simple as using composer to require within your project.

### Prerequisites

[](#prerequisites)

This package requires **squizlabs/php\_codesniffer ^3.0** if you are using an older version of PHP\_CodeSniffer you will not be able to install these standards.

### Installing

[](#installing)

This package is built on top of [dealerdirect/phpcodesniffer-composer-installer](https://github.com/Dealerdirect/phpcodesniffer-composer-installer) so installation is as simple as

```
$ composer require jparkinson1991/phpcodesniffer-standards

```

After requiring this package in your project it will be installed and available for use with PHP\_CodeSniffer

```
$ ./vendor/bin/phpcs -i
The installed coding standards are PEAR, Zend, PSR2, MySource, Squiz, PSR1, PSR12 and JPSR12

```

### Usage

[](#usage)

Use the standards provided by this package in the exact same way you would use the defaults provided by PHP\_Codesniffer. Using JPSR12 as an example.

```
$ ./vendor/bin/phpcs --standard JPSR12

```

```
// phpcs.xml

```

Versioning
----------

[](#versioning)

[SemVer](http://semver.org/) is used for versioning. For the versions available, see the [tags on this repository](https://github.com/JParkinson1991/phpcodesniffer-standards/tags).

Authors
-------

[](#authors)

- **Josh Parkinson** - Hacking and slashing

License
-------

[](#license)

This project is licensed under the GNU GPLv3 License - see the [LICENSE](LICENSE)file for details

Acknowledgments
---------------

[](#acknowledgments)

- [dealerdirect](https://github.com/Dealerdirect) *For the coding standards installer plugin*
- [Drupal](https://www.drupal.org/) *For the multi keyword control structure sniff*
- [PHP-FIG](https://www.php-fig.org) *For PSR-12*
- [squizlabs](https://github.com/squizlabs) *For PHP\_Codesniffer*

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

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

Recently: every ~93 days

Total

8

Last Release

1805d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a012826a28e80946416d3d0ceaa67184f75f3be92703970b473bdcf429fe583?d=identicon)[JParkinson1991](/maintainers/JParkinson1991)

---

Top Contributors

[![JParkinson1991](https://avatars.githubusercontent.com/u/6921398?v=4)](https://github.com/JParkinson1991 "JParkinson1991 (50 commits)")

### Embed Badge

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

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

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)[moodlehq/moodle-cs

Moodle Coding Sniffer rules

242.8M5](/packages/moodlehq-moodle-cs)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)

PHPackages © 2026

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