PHPackages                             badoo/phpcf - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. badoo/phpcf

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

badoo/phpcf
===========

The formatter was created to basically only modify whitespaces, for example line feed, tabs, spaces, etc.

v1.1.0(4y ago)1802.5k271MITPHPPHP ^7.0.17

Since Apr 10Pushed 4y ago3 watchersCompare

[ Source](https://github.com/badoo/phpcf)[ Packagist](https://packagist.org/packages/badoo/phpcf)[ RSS](/packages/badoo-phpcf/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (1)

phpcf
=====

[](#phpcf)

⚠️ The project is abandoned. Instead of adding support for PHP8+ we have decided to switch to [PHP\_CodeSniffer](http://github.com/squizlabs/PHP_CodeSniffer/). ⚠️

The formatter was created to basically only modify whitespaces, for example line feed, tabs, spaces, etc. It means that phpcf does not replace similar utilities like PHP Code Sniffer (phpcs) or PHP Coding Standards Fixer () by Fabien Potencier. The utility supplements others and does all the "dirty work" with whitespace characters. It is worth noting that our utility respects the initial file formatting and only changes whitespace characters that do not follow the chosen ruleset (some utilities remove all whitespace first and reconstruct file from scratch, which is not necessarily what people want).

Our utility is extensible and supports arbitrary style sets. You can define your own formatting style pretty easily to replace Badoo formatting standard that is a bit different from PSR.

Below is a little usage example.

- "phpcf apply " formats the specified file
- "phpcf check " checks that formatting is correct and returns non-zero exit code when file is not formatted properly

```
$ cat minifier.php
