PHPackages                             alex-the-coder/coding-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. alex-the-coder/coding-standards

ActivePhpcodesniffer-standard

alex-the-coder/coding-standards
===============================

Alex Coder's PHP Coding Standards

1.0.0(3y ago)021BSD-3-ClausePHP &gt;=5.4.0

Since Jan 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/alex-the-coder/coding-standards)[ Packagist](https://packagist.org/packages/alex-the-coder/coding-standards)[ Docs](https://alexcoder.ru/coding-standards)[ RSS](/packages/alex-the-coder-coding-standards/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Alex Coders's coding standards
==============================

[](#alex-coderss-coding-standards)

- [README на русском](./README_RU.md)

About
-----

[](#about)

Alex Coders's PHP Coding Standards is a set of two [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) configuration XML files; the main `ruleset.xml` config file that define base PHP coding standard, and a second `ruleset-strict.xml` config file that define strict PHP coding standard.

Alex Coders's PHP Coding Standards is an essential development tool that ensures your code remains clean and consistent.

Requirements
------------

[](#requirements)

Alex Coders's PHP Coding Standards requires [PHP](https://www.php.net) version 5.4.0 or greater and [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) version 3.6.0 or greater.

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

[](#installation)

The easiest way to get started with Alex Coders's PHP Coding Standards is to install it through [Composer](https://getcomposer.org) with the following command:

```
composer require "alex-the-coder/coding-standards"
```

Or alternatively, include a dependency for `alex-the-coder/coding-standards` in your `composer.json` file. For example:

```
{
    "require-dev": {
        "alex-the-coder/coding-standards": "^1.0"
    }
}
```

You can then run PHP\_CodeSniffer from the vendor's bin directory to make sure the necessary dependencies and all Alex Coder's PHP Coding Standards are installed correctly:

```
./vendor/bin/phpcs -h
```

```
./vendor/bin/phpcbf -h
```

```
./vendor/bin/phpcs -v --standard=./vendor/alex-the-coder/coding-standards/ruleset.xml ./vendor/autoload.php
```

```
./vendor/bin/phpcs -v --standard=./vendor/alex-the-coder/coding-standards/ruleset-strict.xml ./vendor/autoload.php
```

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

[](#getting-started)

To check a PHP file against the Alex Coders's PHP Coding Standard, use the `--standard` command line argument and specify the file's location:

```
./vendor/bin/phpcs -v --standard=./vendor/alex-the-coder/coding-standards/ruleset.xml /path/to/code/myfile.php
```

Or if you wish to check an entire directory you can specify the directory location instead of a file:

```
./vendor/bin/phpcs -v --standard=./vendor/alex-the-coder/coding-standards/ruleset.xml /path/to/code-directory
```

If PHP\_CodeSniffer finds any coding standard errors, a report will be shown after running the command.

Full usage information and example reports are available on the [usage page](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage).

### Custom configuration file

[](#custom-configuration-file)

To simplify usage, you can create an XML configuration file `./.phpcs.xml` in your project root with the content:

```

```

You can then run simple commands like:

```
./vendor/bin/phpcs -v /path/to/code/myfile.php
```

or

```
./vendor/bin/phpcs -v /path/to/code-directory
```

See more information about [using a Configuration File](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file) and [Annotated Ruleset](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset).

Full list of [Customisable Sniff Properties here](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Customisable-Sniff-Properties).

Documentation
-------------

[](#documentation)

The documentation for PHP\_CodeSniffer is available on the [Github wiki](https://github.com/squizlabs/PHP_CodeSniffer/wiki).

See the [Configuration Options manual page](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Configuration-Options).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/778d6238ba24832ada35faa62c5728700b0b944b3494fde9186eb866f357e2ee?d=identicon)[alex-the-coder](/maintainers/alex-the-coder)

---

Top Contributors

[![alex-the-coder](https://avatars.githubusercontent.com/u/104488585?v=4)](https://github.com/alex-the-coder "alex-the-coder (2 commits)")

---

Tags

phpphpcsphpcbfstandardcodesniffercodingalexcoder

### Embed Badge

![Health badge](/badges/alex-the-coder-coding-standards/health.svg)

```
[![Health](https://phpackages.com/badges/alex-the-coder-coding-standards/health.svg)](https://phpackages.com/packages/alex-the-coder-coding-standards)
```

###  Alternatives

[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

75833.3k94](/packages/consistence-coding-standard)[moodlehq/moodle-cs

Moodle Coding Sniffer rules

242.8M5](/packages/moodlehq-moodle-cs)[leroy-merlin-br/coding-standard

The coding standard for PHP projects on LMBR

2137.0k10](/packages/leroy-merlin-br-coding-standard)

PHPackages © 2026

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