PHPackages                             tigitz/phpcs - 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. tigitz/phpcs

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

tigitz/phpcs
============

Official Geolid coding standard supporting php7.1.

8.0.0(7y ago)0258MITPHPPHP ^7.1

Since Oct 27Pushed 7y agoCompare

[ Source](https://github.com/tigitz/phpcs)[ Packagist](https://packagist.org/packages/tigitz/phpcs)[ Docs](https://github.com/tigitz/phpcs)[ RSS](/packages/tigitz-phpcs/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (5)Versions (17)Used By (0)

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

[](#installation)

```
composer require --dev tigitz/phpcs

```

You only need this package, no need to require manually `squizlabs/php_codesniffer`.

after require, copy in your path : `phpcs.xml.dist` and rename to `phpcs.xml̀`or add the rule below in your existing `phpcs.xml`.

```

```

Usage
-----

[](#usage)

Use phpcs normally.

```
vendor/bin/phpcs

```

Description
-----------

[](#description)

We follow the PSR-2 coding style with additional rules.

Additional rules :
------------------

[](#additional-rules-)

- Private methods and properties MUST not be prefixed with an underscore.
- One space around concatenation operator.
- One space after casting operator.
- Array must be in short syntax.
- Trailing comma : multiline arrays must have comma in all line.
- No more 3 nesting identation levels.
- Minimal length of naming (function, variable, constant...) is 3 chars (except for i, id, em, om, to, ID, TO).
- Object instantiation must always be with parentheses.
- Must have blank line before return statement.
- Must have one space before return typehint. ```
    public function foo(): self {}
    ```
- Php must contains `declare(strict_types=1);` with one blank line between declaration and php open tag.
- Visibility MUST be declared on all constants (PSR-12).
- No unused imports (`use` statements).

### naming

[](#naming)

- Prefix all abstract classes with Abstract except PHPUnit \*TestCase. (name of empty abstract not detected for moment).
- Suffix interfaces with Interface.
- Suffix traits with Trait.
- Suffix exceptions with Exception.

Testing
-------

[](#testing)

```
composer test

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~30 days

Recently: every ~46 days

Total

16

Last Release

2672d ago

Major Versions

3.1.0 → 4.0.02018-03-19

4.0.0 → 5.0.02018-05-17

5.0.0 → 6.0.02018-07-17

6.1.1 → 7.0.02018-10-17

7.0.0 → 8.0.02019-01-20

PHP version history (2 changes)1.0.0PHP ^7.1

3.0.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bad7a5a55603ce0064ada8ff5d2dae82306dc1d95943e34072e727431ca7228?d=identicon)[tigitz](/maintainers/tigitz)

---

Top Contributors

[![devster](https://avatars.githubusercontent.com/u/1135083?v=4)](https://github.com/devster "devster (18 commits)")[![ektarum](https://avatars.githubusercontent.com/u/5079406?v=4)](https://github.com/ektarum "ektarum (11 commits)")[![tigitz](https://avatars.githubusercontent.com/u/1524501?v=4)](https://github.com/tigitz "tigitz (4 commits)")[![chalasr](https://avatars.githubusercontent.com/u/7502063?v=4)](https://github.com/chalasr "chalasr (2 commits)")[![alborq](https://avatars.githubusercontent.com/u/937312?v=4)](https://github.com/alborq "alborq (1 commits)")

---

Tags

standardsphpcscoding-style

### Embed Badge

![Health badge](/badges/tigitz-phpcs/health.svg)

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

###  Alternatives

[phpcompatibility/php-compatibility

A set of sniffs for PHP\_CodeSniffer that checks for PHP cross-version compatibility.

2.3k74.3M1.3k](/packages/phpcompatibility-php-compatibility)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[automattic/vipwpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions

25510.2M145](/packages/automattic-vipwpcs)[mayflower/mo4-coding-standard

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

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

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

217736.5k29](/packages/wptrt-wpthemereview)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)

PHPackages © 2026

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