PHPackages                             froiden/php\_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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. froiden/php\_standard

ActivePhp-code-sniffer[PSR &amp; Standards](/categories/psr-standards)

froiden/php\_standard
=====================

PHP coding standard to be followed at Froiden

v2.0.2(1y ago)52361[1 PRs](https://github.com/Froiden/PHPStandard/pulls)MITPHP

Since Jun 30Pushed 1y ago3 watchersCompare

[ Source](https://github.com/Froiden/PHPStandard)[ Packagist](https://packagist.org/packages/froiden/php_standard)[ RSS](/packages/froiden-php-standard/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (2)Versions (14)Used By (0)

PHP Coding Standard
===================

[](#php-coding-standard)

This repository contains rulesets for **PHP CodeSniffer** and **PHP Mess Detector** along with some custom rules. These standards are followed internally at *Froiden* ([www.froiden.com](http://www.froiden.com))

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

[](#installation)

Install this repository globally using composer:

```
composer global require froiden/php_standard

```

Always use the latest version of the repository.

Setup
-----

[](#setup)

The project will be installed in global composer folder on your PC.

- **Mac**: `.composer/vendor` folder in your home directory
- **Windows**: `AppData/Roaming/Composer/vendor` folder in your user directory
- **Ubuntu**: `.config/composer/vendor` folder in your home directory

You follow the steps respective to your favourite IDE to configure PHP CodeSniffer and PHP MessDetector and point to the two rulesets in the installation folder.

- **ruleset.xml** - For CodeSniffer
- **rulesetmd.xml** - For MessDetector

Attribution
-----------

[](#attribution)

Some sniffs in this repository have been derived from original PHP\_CodeSniffer project. Credits for those go to the respective developers.

VS Code SETUP
-------------

[](#vs-code-setup)

Install the extension name **PHP Sniffer** by **wongjn**

[![N|Solid](https://camo.githubusercontent.com/0d5b8c6d51992fbb00f9c350767fddb63c9ac3221760ab597d80c153b2226c6f/68747470733a2f2f7075626c69632e66726f69642e776f726b732f7068702d736e69662e706e67)](https://camo.githubusercontent.com/0d5b8c6d51992fbb00f9c350767fddb63c9ac3221760ab597d80c153b2226c6f/68747470733a2f2f7075626c69632e66726f69642e776f726b732f7068702d736e69662e706e67)After Activation add the below file to settings.json file

For Mac

```
"phpSniffer.standard": "~/.composer/vendor/froiden/php_standard/ruleset.xml",

```

For Linux

```
"phpSniffer.standard": "~/.config/composer/vendor/froiden/php_standard/ruleset.xml",

```

For Windows

```
"phpSniffer.standard": "%userprofile%/AppData/Roaming/Composer/vendor/froiden/php_standard/ruleset.xml",

```

[![N|Solid](https://camo.githubusercontent.com/6f80320635dceabb983f1999ff2bf062142fffb1419bb996f3d1132bf30d753d/68747470733a2f2f7075626c69632e66726f69642e776f726b732f76732d73657474696e67732d312e706e67)](https://camo.githubusercontent.com/6f80320635dceabb983f1999ff2bf062142fffb1419bb996f3d1132bf30d753d/68747470733a2f2f7075626c69632e66726f69642e776f726b732f76732d73657474696e67732d312e706e67)

To check

```
phpcs --standard=

```

TO fix

```
phpcbf --standard=

```

Ignoring a file

```
// @codingStandardsIgnoreFile

// phpcs:ignoreFile

```

Ignoring a line

```
// @codingStandardsIgnoreLine

// phpcs:ignore

```

Ignoring a block

```
// @codingStandardsIgnoreStart

// phpcs:disable

// @codingStandardsIgnoreEnd

// phpcs:enable

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~241 days

Recently: every ~265 days

Total

13

Last Release

708d ago

Major Versions

v1.0.9 → v2.0.02021-07-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a6e47f6f67e97cf955e3bb56f4db208169e8b7e5655f2772d382dbe0710a417?d=identicon)[shashankkrjain](/maintainers/shashankkrjain)

![](https://www.gravatar.com/avatar/60375e1c6b180410fc5dd27234a4a293b62206e8574fdbe5d64eb4ed0942df77?d=identicon)[ajayfroiden](/maintainers/ajayfroiden)

---

Top Contributors

[![ajayfroiden](https://avatars.githubusercontent.com/u/6275382?v=4)](https://github.com/ajayfroiden "ajayfroiden (12 commits)")[![mr-chetan](https://avatars.githubusercontent.com/u/56998650?v=4)](https://github.com/mr-chetan "mr-chetan (2 commits)")

### Embed Badge

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

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

###  Alternatives

[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[mayflower/mo4-coding-standard

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

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

PHPackages © 2026

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