PHPackages                             brandonkal/phpcs-neutron-refined - 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. brandonkal/phpcs-neutron-refined

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

brandonkal/phpcs-neutron-refined
================================

A base ruleset for EventsMadeLive projects. Based heavily on the Neutron Ruleset by Automattic

v1.9.4(7y ago)026MIT

Since Dec 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/brandonkal/phpcs-neutron-refined)[ Packagist](https://packagist.org/packages/brandonkal/phpcs-neutron-refined)[ RSS](/packages/brandonkal-phpcs-neutron-refined/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (6)Versions (15)Used By (0)

Neutron Refined PHP Ruleset
===========================

[](#neutron-refined-php-ruleset)

There are a set of linting guidelines for EventsMadeLive PHP projects. It is heavily adapted from the Neutron Ruleset by Automattic.

These are a set of modern (PHP &gt;7) linting guidelines for WordPress development. Because of the newer PHP version, it is not suitable for work on Core WordPress, but may be useful for those who are not bound by PHP 5.2.

These guidelines are being developed primarily for a team within [Automattic](https://automattic.com/), but anyone is free to use them, suggest changes, or report bugs.

This project is a [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) "standard" (a collection of rules or "sniffs") that can be included in any project.

This is a meta-project in that it's just a collection of rules defined in these packages with certain modifications:

- [WordPress Coding Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards)
- [VariableAnalysis](https://github.com/sirbrillig/phpcs-variable-analysis)
- [NeutronStandard](https://github.com/Automattic/phpcs-neutron-standard)
- [ImportDetection](https://github.com/sirbrillig/phpcs-import-detection)

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

[](#installation)

To use these rules in a project which is set up using [composer](https://href.li/?https://getcomposer.org/), we recommend using the [phpcodesniffer-composer-installer library](https://href.li/?https://github.com/DealerDirect/phpcodesniffer-composer-installer) which will automatically use all installed standards in the current project with the composer type `phpcodesniffer-standard` when you run phpcs.

```
composer require --dev squizlabs/php_codesniffer dealerdirect/phpcodesniffer-composer-installer
composer require --dev automattic/phpcs-neutron-ruleset

```

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

[](#configuration)

When installing sniff standards in a project, you edit a `phpcs.xml` file with the `rule` tag inside the `ruleset` tag. The `ref` attribute of that tag should specify a standard, category, sniff, or error code to enable. It’s also possible to use these tags to disable or modify certain rules. The [official annotated file](https://href.li/?https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml) explains how to do this.

The following configuration will enable all the sniffs in this ruleset.

```

 My library.

```

Usage
-----

[](#usage)

Most editors have a phpcs plugin available, but you can also run phpcs manually. To run phpcs on a file in your project, just use the command-line as follows (the `-s` causes the sniff code to be shown, which is very important for learning about an error).

```
vendor/bin/phpcs -s src/MyProject/MyClass.php

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 79.4% 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 ~26 days

Recently: every ~17 days

Total

14

Last Release

2727d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4714862?v=4)[Brandon Kalinowski](/maintainers/brandonkal)[@brandonkal](https://github.com/brandonkal)

---

Top Contributors

[![sirbrillig](https://avatars.githubusercontent.com/u/2036909?v=4)](https://github.com/sirbrillig "sirbrillig (27 commits)")[![brandonkal](https://avatars.githubusercontent.com/u/4714862?v=4)](https://github.com/brandonkal "brandonkal (7 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/brandonkal-phpcs-neutron-refined/health.svg)

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

###  Alternatives

[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)[wptrt/wpthemereview

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

217736.5k29](/packages/wptrt-wpthemereview)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1785.2k3](/packages/infinum-eightshift-coding-standards)[szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset

Hybrid PHPCS ruleset for OOP WordPress development

1149.1k9](/packages/szepeviktor-phpcs-psr-12-neutron-hybrid-ruleset)[automattic/phpcs-neutron-ruleset

A PHPCS meta-ruleset for WordPress development

17100.3k4](/packages/automattic-phpcs-neutron-ruleset)

PHPackages © 2026

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