Flitch
PHP Coding Standard Validator
Install / Use
/learn @DASPRiD/FlitchREADME
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 https://github.com/spriebsch/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
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
