PHPackages                             fpcs/php-coding-standard - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fpcs/php-coding-standard

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fpcs/php-coding-standard
========================

The FPCS PHP coding standard

2.0.2(4y ago)01.6kMITPHPPHP ^7.3||^8.0

Since Sep 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/flowerpress/fpcs-php-coding-standard)[ Packagist](https://packagist.org/packages/fpcs/php-coding-standard)[ RSS](/packages/fpcs-php-coding-standard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (16)Used By (0)

The FPCS PHP coding standard
============================

[](#the-fpcs-php-coding-standard)

[![Packagist Version](https://camo.githubusercontent.com/5f63b3b33ae1fe9a3b92b0cd0823def95269d99b45b56d07b1177cf9e6f520ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667063732f7068702d636f64696e672d7374616e64617264)](https://camo.githubusercontent.com/5f63b3b33ae1fe9a3b92b0cd0823def95269d99b45b56d07b1177cf9e6f520ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667063732f7068702d636f64696e672d7374616e64617264) [![PHP from Packagist](https://camo.githubusercontent.com/4aff11d21882e96d618858bdc509a6ca2fd95e82f8378731fa742a9871263584/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f667063732f7068702d636f64696e672d7374616e64617264)](https://camo.githubusercontent.com/4aff11d21882e96d618858bdc509a6ca2fd95e82f8378731fa742a9871263584/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f667063732f7068702d636f64696e672d7374616e64617264) [![Packagist Downloads](https://camo.githubusercontent.com/15696aade827ea7e83b5ead7be8e6fe8d864c9b87da7ae9c88e46928dc6826c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667063732f7068702d636f64696e672d7374616e64617264)](https://camo.githubusercontent.com/15696aade827ea7e83b5ead7be8e6fe8d864c9b87da7ae9c88e46928dc6826c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667063732f7068702d636f64696e672d7374616e64617264) [![Packagist License](https://camo.githubusercontent.com/8a74f9fe8661a58d3a4d47984ba4608cc43e1837bff8d900ae933388aef4764f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f667063732f7068702d636f64696e672d7374616e64617264)](https://camo.githubusercontent.com/8a74f9fe8661a58d3a4d47984ba4608cc43e1837bff8d900ae933388aef4764f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f667063732f7068702d636f64696e672d7374616e64617264)

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

[](#installation)

### Install package:

[](#install-package)

`composer require --dev fpcs/php-coding-standard`

### Implement standards:

[](#implement-standards)

#### ./phpcs.xml:

[](#phpcsxml)

```

```

#### ./easy-coding-standard.yaml:

[](#easy-coding-standardyaml)

```
imports:
    - { resource: 'vendor/symplify/easy-coding-standard/config/set/psr2.yaml' }
    - { resource: 'vendor/symplify/easy-coding-standard/config/set/clean-code.yaml' }
    - { resource: 'vendor/fpcs/php-coding-standard/easy-coding-standard/*.yaml' }

```

### Selecting specific standards:

[](#selecting-specific-standards)

There are `base` standards, and then more specific standards, which should be used IN ADDITION to the `base` standard.

Available standards:

1. `base` (always use)
2. `laravel`

#### ./phpcs.xml:

[](#phpcsxml-1)

```

```

#### ./easy-coding-standard.yaml:

[](#easy-coding-standardyaml-1)

```
imports:
    - { resource: 'vendor/symplify/easy-coding-standard/config/set/psr2.yaml' }
    - { resource: 'vendor/symplify/easy-coding-standard/config/set/clean-code.yaml' }
    - { resource: 'vendor/fpcs/php-coding-standard/easy-coding-standard/base.yaml' }
    - { resource: 'vendor/fpcs/php-coding-standard/easy-coding-standard/laravel.yaml' }

```

### Automate:

[](#automate)

#### package.json:

[](#packagejson)

```
  "scripts": {
    ...
    "ecs": "./vendor/bin/ecs check ./ --fix",
    "phpcbf": "./vendor/bin/phpcbf ./",
    "phpcs": "./vendor/bin/phpcs -sp ./",
    "lint": "yarn ecs && yarn phpcbf",
    ...
  },

```

#### lint-stagerd.config.js:

[](#lint-stagerdconfigjs)

```
module.exports = {
    '*.php': files => [
        `./vendor/bin/ecs check --fix "${files.join('" "')}"`,
        `./vendor/bin/phpcbf "${files.join('" "')}"`,
        `git add "${files.join('" "')}"`,
    ],
};

```

Run it:
-------

[](#run-it)

`yarn lint`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity71

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

Recently: every ~69 days

Total

15

Last Release

1561d ago

Major Versions

1.2.5 → v2.x-dev2021-05-05

PHP version history (4 changes)1.2.1PHP ^7.2

v2.x-devPHP ^7.3

v2.0.1.x-devPHP ^7.3||^7.4||^8.1

2.0.2PHP ^7.3||^8.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/93b8cb680e20ebde8b0212a8a1d511dcbc525f373481a8c920943d604fefe503?d=identicon)[coderDx](/maintainers/coderDx)

---

Top Contributors

[![mattrabe](https://avatars.githubusercontent.com/u/1786783?v=4)](https://github.com/mattrabe "mattrabe (20 commits)")

### Embed Badge

![Health badge](/badges/fpcs-php-coding-standard/health.svg)

```
[![Health](https://phpackages.com/badges/fpcs-php-coding-standard/health.svg)](https://phpackages.com/packages/fpcs-php-coding-standard)
```

###  Alternatives

[worksome/coding-style

Worksomes coding style

49771.7k57](/packages/worksome-coding-style)[laminas/laminas-coding-standard

Laminas Coding Standard

331.7M534](/packages/laminas-laminas-coding-standard)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k13](/packages/shopsys-coding-standards)[mrm-commerce/magento-coding-standard-phpcs

MRM Commerce PHP Code Sniffer Coding Standard designed for Magento 2 applications

4751.2k](/packages/mrm-commerce-magento-coding-standard-phpcs)[syde/phpcs

Syde PHP coding standards for WordPress projects.

1019.7k7](/packages/syde-phpcs)

PHPackages © 2026

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