PHPackages                             dasprid/flitch - 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. dasprid/flitch

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

dasprid/flitch
==============

PHP Coding Standard Validator

58318[1 issues](https://github.com/DASPRiD/Flitch/issues)PHP

Since Apr 4Pushed 13y ago7 watchersCompare

[ Source](https://github.com/DASPRiD/Flitch)[ Packagist](https://packagist.org/packages/dasprid/flitch)[ RSS](/packages/dasprid-flitch/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

```
Flitch - PHP coding standard validator
======================================

About
-----
Flitch is a coding standard validator for PHP, meant as a replacement for
PHPCS. It is partly based on PHPca  by
Stefan Priebsch, but should not be confused with a fork of it.

Flitch will scan through your source files and detect coding standard
violations. Currently it ships with PSR-1 and PSR-2 as core standards, but can
be extended by custom standards.

Why replace PHPCS?
------------------
Since this question came up a few times already, here is a list of reasons:

- PHPCS is known to be a memory hog.
- It is not trivial to write complex rules for PHPCS.
- It is complicated to write unit tests for rules.
- Flitch is written completly modular, so it can be reused in other
  applications.
- Last but not least, competition is a good thing.

Adding custom standards
-----------------------
Custom standards should be located in the directory .flitch/standards
in your home directory.

Installation
------------
To install Flitch, simply clone it with git. Additionally you can symlink the
"flitch" executable to a directory in your PATH.

Using Flitch
------------
For command line options, run flitch --help

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0490627b04e8600f8227138bac3d4aea04c22eecfa119e73b47c362363904847?d=identicon)[DASPRiD](/maintainers/DASPRiD)

---

Top Contributors

[![DASPRiD](https://avatars.githubusercontent.com/u/233300?v=4)](https://github.com/DASPRiD "DASPRiD (47 commits)")

### Embed Badge

![Health badge](/badges/dasprid-flitch/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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