PHPackages                             amitchandrakar/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. amitchandrakar/php\_standard

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

amitchandrakar/php\_standard
============================

PHP coding standard to be followed

1.1(4y ago)0201[1 PRs](https://github.com/amitchandrakar/PHPStandards/pulls)MITPHP

Since Jul 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/amitchandrakar/PHPStandards)[ Packagist](https://packagist.org/packages/amitchandrakar/php_standard)[ RSS](/packages/amitchandrakar-php-standard/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (2)Dependencies (2)Versions (3)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.

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

[](#installation)

Install this repository globally using composer:

```
composer global require amitchandrakar/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](./img/php-snif.png)](./img/php-snif.png)After Activation add the below file to settings.json file

For Mac

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

```

For Linux

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

```

For Windows

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

```

[![N|Solid](./img/vs-settings-1.png)](./img/vs-settings-1.png)

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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

2

Last Release

1762d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36ab5883bbd3dc2886685dafd39d818af4ed2cd6394d67b6897d92587a74aa64?d=identicon)[amitchandrakar](/maintainers/amitchandrakar)

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/amitchandrakar-php-standard/health.svg)](https://phpackages.com/packages/amitchandrakar-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)
