PHPackages                             flaconi/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. [Testing &amp; Quality](/categories/testing)
4. /
5. flaconi/coding-standard

AbandonedArchivedPhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

flaconi/coding-standard
=======================

Flaconi Coding Standard for PHP\_CodeSniffer

5.0.0(4y ago)048.2k↓43.8%12MITPHPPHP ^7.4 || ^8.0

Since Sep 12Pushed 6mo ago20 watchersCompare

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

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

Flaconi Coding Standard
=======================

[](#flaconi-coding-standard)

[![Latest version](https://camo.githubusercontent.com/a1e67ea9089e8dc3653c421dd359882d82c508898fd247c71224da97df35385b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c61636f6e692f636f64696e672d7374616e646172642e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d303037454336)](https://packagist.org/packages/flaconi/coding-standard)[![Downloads](https://camo.githubusercontent.com/6f6558610ca42c1c5fc66873c4bd8bc68cd4e9786017ef42be0a3c1aec52c674/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666c61636f6e692f636f64696e672d7374616e646172642e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d303037454336)](https://packagist.org/packages/flaconi/coding-standard)[![Travis build status](https://camo.githubusercontent.com/82f1a1ae2c7f0c16053c9ef2ebb3758e5f081118d7f0311e13e556bf86e92b94/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f466c61636f6e692f70687063732d636f64696e672d7374616e646172642f6d61737465722e7376673f6c6162656c3d747261766973267374796c653d666c61742d737175617265)](https://travis-ci.org/Flaconi/phpcs-coding-standard)[![Code coverage](https://camo.githubusercontent.com/d47bbb01ee67f22bbadba07a50e92762e740721f6520ecc01c5ed22644f0b514/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f466c61636f6e692f70687063732d636f64696e672d7374616e646172642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/Flaconi/phpcs-coding-standard?branch=master)[![PHPStan](https://camo.githubusercontent.com/e43e27acff50e6ee0656e0a112d484ff55f844ff10e79b3d17641033ea51d18f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374796c652d6c6576656c253230372d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265266c6162656c3d7068707374616e)](https://camo.githubusercontent.com/e43e27acff50e6ee0656e0a112d484ff55f844ff10e79b3d17641033ea51d18f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374796c652d6c6576656c253230372d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265266c6162656c3d7068707374616e)

Flaconi Coding Standard for [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) provides sniffs that fall for now in one category:

- Test - improving the code style of phpunit test cases

Table of contents
-----------------

[](#table-of-contents)

1. [Sniffs included in this standard](#sniffs-included-in-this-standard)
    - [Test - improving the code style of phpunit test cases](#test---improving-the-code-style-of-phpunit-test-cases)
2. [Installation](#installation)
3. [How to run the sniffs](#how-to-run-the-sniffs)
    - [Choose which sniffs to run](#choose-which-sniffs-to-run)
    - [Using all sniffs from the standard](#using-all-sniffs-from-the-standard)
4. [Fixing errors automatically](#fixing-errors-automatically)
5. [Suppressing sniffs locally](#suppressing-sniffs-locally)
6. [Contributing](#contributing)

Sniffs included in this standard
--------------------------------

[](#sniffs-included-in-this-standard)

🔧 = [Automatic errors fixing](#fixing-errors-automatically)

### Test - improving the code style of phpunit test cases

[](#test---improving-the-code-style-of-phpunit-test-cases)

#### FlaconiCodingStandard.Test.UseMethodPrefixInTestcase 🔧

[](#flaconicodingstandardtestusemethodprefixintestcase-)

- Checks for `@test` and force to use `test` Prefix

#### FlaconiCodingStandard.Test.UseStaticCallsForAssertInTestcase 🔧

[](#flaconicodingstandardtestusestaticcallsforassertintestcase-)

Reports usage of non static assert method class

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

[](#installation)

The recommended way to install Flaconi Coding Standard is [through Composer](http://getcomposer.org).

```
composer require --dev flaconi/coding-standard
```

How to run the sniffs
---------------------

[](#how-to-run-the-sniffs)

You can choose one of two ways to run only selected sniffs from the standard on your codebase:

### Choose which sniffs to run

[](#choose-which-sniffs-to-run)

Mention Flaconi Coding Standard in your project's `ruleset.xml`:

```

```

When running `phpcs` [on the command line](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage), use the `--sniffs` option to list all the sniffs you want to use separated by a comma:

```
vendor/bin/phpcs --standard=ruleset.xml \
--sniffs=FlaconiCodingStandard.Test.UseStaticCallsForAssertInTestcase,FlaconiCodingStandard.Test.UseMethodPrefixInTestcase \
--extensions=php --encoding=utf-8 --tab-width=4 -sp src tests

```

Or write your own ruleset.xml by referencing the selected sniffs. This is a sample ruleset.xml:

```

```

Then run the `phpcs` executable the usual way:

```
vendor/bin/phpcs --standard=ruleset.xml --extensions=php --tab-width=4 -sp src tests

```

Fixing errors automatically
---------------------------

[](#fixing-errors-automatically)

Sniffs in this standard marked by the 🔧 symbol support [automatic fixing of coding standard violations](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically). To fix your code automatically, run phpcbf instead of phpcs:

```
vendor/bin/phpcbf --standard=ruleset.xml --extensions=php --tab-width=4 -sp src tests

```

Always remember to back up your code before performing automatic fixes and check the results with your own eyes as the automatic fixer can sometimes produce unwanted results.

Contributing
------------

[](#contributing)

To make this repository work on your machine, clone it and run these two commands in the root directory of the repository:

```
composer install
composer code-style
composer tests

```

After writing some code and editing or adding unit tests, run phing again to check that everything is OK:

```
composer code-style
composer tests

```

We are always looking forward for your bugreports, feature requests and pull requests. Thank you.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance47

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 81.5% 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 ~104 days

Recently: every ~233 days

Total

12

Last Release

1656d ago

Major Versions

1.0.x-dev → 2.0.02019-02-20

2.0.x-dev → 3.0.02019-03-14

3.1.2 → 4.0.02020-11-20

4.0.0 → 5.0.02021-11-04

PHP version history (4 changes)1.0.0PHP ^7.2

3.1.0PHP ^7.3

4.0.0PHP ^7.4

5.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43198111?v=4)[FlaconiGithubServiceUser](/maintainers/FlaconiGithubServiceUser)[@FlaconiGithubServiceUser](https://github.com/FlaconiGithubServiceUser)

---

Top Contributors

[![Engerim](https://avatars.githubusercontent.com/u/1322557?v=4)](https://github.com/Engerim "Engerim (22 commits)")[![kubawerlos](https://avatars.githubusercontent.com/u/9282069?v=4)](https://github.com/kubawerlos "kubawerlos (3 commits)")[![snovikov](https://avatars.githubusercontent.com/u/576712?v=4)](https://github.com/snovikov "snovikov (1 commits)")[![vikkasyousaf](https://avatars.githubusercontent.com/u/39026197?v=4)](https://github.com/vikkasyousaf "vikkasyousaf (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[mayflower/mo4-coding-standard

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

17508.3k5](/packages/mayflower-mo4-coding-standard)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)

PHPackages © 2026

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