PHPackages                             paysera/lib-arcanist-php-cs-extension - 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. paysera/lib-arcanist-php-cs-extension

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

paysera/lib-arcanist-php-cs-extension
=====================================

Php Cs Fixer arcanist extension

1.3.4(7y ago)014.2k4[4 PRs](https://github.com/paysera/lib-arcanist-php-cs-extension/pulls)PHPPHP ^5.5 || ^7.0

Since Aug 8Pushed 2y ago11 watchersCompare

[ Source](https://github.com/paysera/lib-arcanist-php-cs-extension)[ Packagist](https://packagist.org/packages/paysera/lib-arcanist-php-cs-extension)[ RSS](/packages/paysera-lib-arcanist-php-cs-extension/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (6)Versions (30)Used By (0)

lib-arcanist-php-cs-extension [![](https://camo.githubusercontent.com/fbe7710ede332cd58d33dcfb372f99216148fa7d1864cb38fecbbff43c71f76e/68747470733a2f2f7472617669732d63692e6f72672f706179736572612f6c69622d617263616e6973742d7068702d63732d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/fbe7710ede332cd58d33dcfb372f99216148fa7d1864cb38fecbbff43c71f76e/68747470733a2f2f7472617669732d63692e6f72672f706179736572612f6c69622d617263616e6973742d7068702d63732d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#lib-arcanist-php-cs-extension-)

This library integrates [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) as lint engine to `arcanist`. It allows developer to automatically run `php-cs-fixer` on `arc diff`.

### Before installing library

[](#before-installing-library)

To automatically configure your `.arcconfig` add `"Paysera\\Composer\\ArcConfigParser::parseArcConfig"` script to `post-install-cmd` and `post-update-cmd`or other `scipts` - just make sure this script is executed on `composer install`.

### Installation

[](#installation)

- `composer require --dev paysera/lib-arcanist-php-cs-extension`.
- Make sure `.php_cs` file is in project directory.
- Make sure `.arcconfig` file contains following configurable default entries:
    - `"lint.engine": "PhpCsFixerLintEngine"`
    - `"load": ["vendor/paysera/lib-arcanist-php-cs-extension/src/"]`
    - `"lint.php_cs_fixer.fix_paths" : ["src/"]` - list of directories to run `php-cs-fixer` on.
    - `"lint.php_cs_fixer.php_cs_binary" : "{your-bin-dir}/php-cs-fixer"` - location for `php-cs-fixer` executable.
    - `"lint.php_cs_fixer.php_cs_file": ".php_cs"` - location for `.php_cs` file.

### Example output

[](#example-output)

In case `php-cs-fixer` found no problems:

```
$ arc lint
 OKAY  No lint warnings.

```

If `php-cs-fixer` reports errors, arcanist `diff` will be displayed:

```
$ arc lint

>>> Lint for src/Acme/Bundle/AcmeBundle/Controller/DefaultController.php:

   Warning  (PHP_CS_FIXER) pre_increment, phpdoc_separation, phpdoc_align
    Please consider applying these changes:
    ```
    - * @param array $fixData
    + * @param array  $fixData
    + *
    ```

               4 {
               5     /**
               6      * @param string $path
    >>>        7      * @param array $fixData
               8      * @return \ArcanistLintMessage[]
               9      */
              10     public function buildLintMessages($path, array $fixData)

   Warning  (PHP_CS_FIXER) pre_increment, phpdoc_separation, phpdoc_align
    Please consider applying these changes:
    ```
    - for ($i = 0; $i < count($rows); $i++) {
    + for ($i = 0; $i < count($rows); ++$i) {
    ```

              13         $rows = array_map('trim', file($path));
              14
              15         $messages = [];
    >>>       16         for ($i = 0; $i < count($rows); $i++) {
              17             foreach ($diffParts as $diffPart) {
              18                 if (isset($diffPart['informational'])) {
              19                     $matchedInformational = 0;

```

If `Excuse` message will be provided, these messages will be sent to `Phabricator`.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity69

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 ~25 days

Recently: every ~79 days

Total

27

Last Release

2555d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d385187c2b529d5c1189dfc3763972f76738d24293593ff3db876fff82321db?d=identicon)[paysera.com](/maintainers/paysera.com)

---

Top Contributors

[![borilyordanov](https://avatars.githubusercontent.com/u/11679283?v=4)](https://github.com/borilyordanov "borilyordanov (1 commits)")[![vbartusevicius](https://avatars.githubusercontent.com/u/7325630?v=4)](https://github.com/vbartusevicius "vbartusevicius (1 commits)")

---

Tags

arcanistphp-cs-fixer

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/paysera-lib-arcanist-php-cs-extension/health.svg)

```
[![Health](https://phpackages.com/badges/paysera-lib-arcanist-php-cs-extension/health.svg)](https://phpackages.com/packages/paysera-lib-arcanist-php-cs-extension)
```

###  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)[orchestra/testbench

Laravel Testing Helper for Packages Development

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

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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