PHPackages                             editorconfig-checker/editorconfig-checker - 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. editorconfig-checker/editorconfig-checker

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

editorconfig-checker/editorconfig-checker
=========================================

A tool to verify that your files follow the rules of your .editorconfig

10.7.0(1y ago)74852.8k—8.9%17[3 issues](https://github.com/editorconfig-checker/editorconfig-checker.php/issues)[3 PRs](https://github.com/editorconfig-checker/editorconfig-checker.php/pulls)20MITPHPPHP ^7.2 || ^8.0CI passing

Since Jan 30Pushed 3mo ago7 watchersCompare

[ Source](https://github.com/editorconfig-checker/editorconfig-checker.php)[ Packagist](https://packagist.org/packages/editorconfig-checker/editorconfig-checker)[ RSS](/packages/editorconfig-checker-editorconfig-checker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (66)Used By (20)

editorconfig-checker
====================

[](#editorconfig-checker)

[![Logo](https://raw.githubusercontent.com/editorconfig-checker/editorconfig-checker.php/master/Docs/logo.png "Logo")](https://raw.githubusercontent.com/editorconfig-checker/editorconfig-checker.php/master/Docs/logo.png)

This is a command-line tool to check if given files implement your .editorconfig rules.

[![Build Status](https://camo.githubusercontent.com/b37f29f5d6d238c575fd9e979f7903af55c55d27ffe2902e6329ab08f6a095fe/68747470733a2f2f7472617669732d63692e6f72672f656469746f72636f6e6669672d636865636b65722f656469746f72636f6e6669672d636865636b65722e7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/editorconfig-checker/editorconfig-checker.php)[![Coverage Status](https://camo.githubusercontent.com/0ba6c5c141751edc11ea2283d98fdbacca0818049d75c3085dd2d68828f0bcfd/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f656469746f72636f6e6669672d636865636b65722f656469746f72636f6e6669672d636865636b65722e7068702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/editorconfig-checker/editorconfig-checker.php/?branch=master)[![Code Climate](https://camo.githubusercontent.com/d4a1ec072c28fcfb9abc4756dac434e2b53f9daed53c7deac9b1ae74f5908bbc/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f656469746f72636f6e6669672d636865636b65722f656469746f72636f6e6669672d636865636b65722e7068702f6261646765732f6770612e737667)](https://codeclimate.com/github/editorconfig-checker/editorconfig-checker.php)[![Issue Count](https://camo.githubusercontent.com/ba4f2ba5c02476b0b96f312607a940172eeccf817b4f180aabb13fdceaee012d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f656469746f72636f6e6669672d636865636b65722f656469746f72636f6e6669672d636865636b65722e7068702f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/editorconfig-checker/editorconfig-checker.php)[![psr2](https://camo.githubusercontent.com/4a5e12a49df90834e3bfe81f6d0329a6089b227d363ae60cf187cea80995fe0f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63732d5053522d2d322d79656c6c6f772e737667)](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)[![composer.lock](https://camo.githubusercontent.com/eede9b29771d26bf696bc149f4c452fd15a0a850091204a93cf65be7770a9d11/68747470733a2f2f706f7365722e707567782e6f72672f656469746f72636f6e6669672d636865636b65722f656469746f72636f6e6669672d636865636b65722f636f6d706f7365726c6f636b)](https://packagist.org/packages/editorconfig-checker/editorconfig-checker)[![Total Downloads](https://camo.githubusercontent.com/3b7c106fa517b6d43dad733ff3c018ae8e2158da2e084b24d3af03015944213f/68747470733a2f2f706f7365722e707567782e6f72672f656469746f72636f6e6669672d636865636b65722f656469746f72636f6e6669672d636865636b65722f646f776e6c6f616473)](https://packagist.org/packages/editorconfig-checker/editorconfig-checker)[![Daily Downloads](https://camo.githubusercontent.com/09860aacff822688ff574693e58951e9ae57bc0cd9a3203b6164c2a9385fad9b/68747470733a2f2f706f7365722e707567782e6f72672f656469746f72636f6e6669672d636865636b65722f656469746f72636f6e6669672d636865636b65722f642f6461696c79)](https://packagist.org/packages/editorconfig-checker/editorconfig-checker)[![Monthly Downloads](https://camo.githubusercontent.com/e978a3d158b1a34eb6e9c242b5ab4c5eda51ff9a300daa62522a66780f763dba/68747470733a2f2f706f7365722e707567782e6f72672f656469746f72636f6e6669672d636865636b65722f656469746f72636f6e6669672d636865636b65722f642f6d6f6e74686c79)](https://packagist.org/packages/editorconfig-checker/editorconfig-checker)[![Latest Stable Version](https://camo.githubusercontent.com/db67b6a8b384ebb2881ac66c572fd535ee63e303bdc4e880dd0cda2b0d9a1e95/68747470733a2f2f706f7365722e707567782e6f72672f656469746f72636f6e6669672d636865636b65722f656469746f72636f6e6669672d636865636b65722f762f737461626c65)](https://packagist.org/packages/editorconfig-checker/editorconfig-checker)[![Latest Unstable Version](https://camo.githubusercontent.com/edad27c1bf0b53215cfff29c1cd33917d31049f726b53db541edefea75a3745f/68747470733a2f2f706f7365722e707567782e6f72672f656469746f72636f6e6669672d636865636b65722f656469746f72636f6e6669672d636865636b65722f762f756e737461626c65)](https://packagist.org/packages/editorconfig-checker/editorconfig-checker)[![License](https://camo.githubusercontent.com/1431bade7bd8307c6782d569806d4694dabe546ad76a3a4d989e8c5c8e450187/68747470733a2f2f706f7365722e707567782e6f72672f656469746f72636f6e6669672d636865636b65722f656469746f72636f6e6669672d636865636b65722f6c6963656e7365)](https://packagist.org/packages/editorconfig-checker/editorconfig-checker)

[![Buy Me A Coffee](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/mstruebing)

What?
-----

[](#what)

This is a tool to check if your files consider your .editorconfig. Most tools - like linters for example - only test one filetype and need an extra configuration. This tool only needs your editorconfig to check all files.

[![Sample Output](https://raw.githubusercontent.com/editorconfig-checker/editorconfig-checker.php/master/Docs/sample.png "Sample Output")](https://raw.githubusercontent.com/editorconfig-checker/editorconfig-checker.php/master/Docs/sample.png)

Important
---------

[](#important)

This is only a wrapper for the core [editorconfig-checker](https://github.com/editorconfig-checker/editorconfig-checker). You should have a look at this repository to know how this tool can be used and what possibilities/caveats are there. This version can be used in the same way as the core as every argument is simply passed down to it.

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

[](#installation)

```
composer require --dev editorconfig-checker/editorconfig-checker

```

Usage
-----

[](#usage)

```
vendor/bin/ec

```

Configuration
-------------

[](#configuration)

You can configure analysis in `.editorconfig-checker.json` json file, e.g.:

```
{
    "Exclude": [
        "^vendor\/",
        "^var\/",
        "^\\.idea\/",
        "\\.phar$"
    ]
}
```

Full list of config options is in [core docs](https://github.com/editorconfig-checker/editorconfig-checker?tab=readme-ov-file#configuration)

Cli options
-----------

[](#cli-options)

Please head to [core docs](https://github.com/editorconfig-checker/editorconfig-checker?tab=readme-ov-file#usage).

Support
-------

[](#support)

If you have any questions or just want to chat join #editorconfig-checker on freenode(IRC). If you don't have an IRC-client set up you can use the [freenode webchat](https://webchat.freenode.net/?channels=editorconfig-checker).

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance65

Regular maintenance activity

Popularity53

Moderate usage in the ecosystem

Community38

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 63.2% 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 ~59 days

Recently: every ~281 days

Total

51

Last Release

427d ago

Major Versions

5.1.1 → 6.0.02017-07-02

6.0.0 → 7.0.02017-08-13

v7.1.0 → 8.0.02018-08-10

7.x-dev → 9.0.02019-03-31

9.2.0 → 10.0.02019-08-18

PHP version history (3 changes)v7.1.0PHP 7.\*

9.0.0PHP ^7.2

10.2.1PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5d096f3354104f5ab8594fd849ae6d398acc0e042b3ac94d665cf4489664851?d=identicon)[mstruebing](/maintainers/mstruebing)

---

Top Contributors

[![mstruebing](https://avatars.githubusercontent.com/u/12071529?v=4)](https://github.com/mstruebing "mstruebing (371 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (117 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (48 commits)")[![janedbal](https://avatars.githubusercontent.com/u/1993453?v=4)](https://github.com/janedbal "janedbal (18 commits)")[![s2b](https://avatars.githubusercontent.com/u/458524?v=4)](https://github.com/s2b "s2b (8 commits)")[![pixelbrackets](https://avatars.githubusercontent.com/u/1592995?v=4)](https://github.com/pixelbrackets "pixelbrackets (6 commits)")[![grebaldi](https://avatars.githubusercontent.com/u/2522299?v=4)](https://github.com/grebaldi "grebaldi (4 commits)")[![jonathan-shahen](https://avatars.githubusercontent.com/u/32882794?v=4)](https://github.com/jonathan-shahen "jonathan-shahen (2 commits)")[![icanhazstring](https://avatars.githubusercontent.com/u/883543?v=4)](https://github.com/icanhazstring "icanhazstring (2 commits)")[![janhelke](https://avatars.githubusercontent.com/u/5299739?v=4)](https://github.com/janhelke "janhelke (2 commits)")[![paranoiq](https://avatars.githubusercontent.com/u/146912?v=4)](https://github.com/paranoiq "paranoiq (2 commits)")[![baileylo](https://avatars.githubusercontent.com/u/145345?v=4)](https://github.com/baileylo "baileylo (1 commits)")[![mzk](https://avatars.githubusercontent.com/u/382475?v=4)](https://github.com/mzk "mzk (1 commits)")[![freesh](https://avatars.githubusercontent.com/u/4658848?v=4)](https://github.com/freesh "freesh (1 commits)")[![peterkraume](https://avatars.githubusercontent.com/u/4234704?v=4)](https://github.com/peterkraume "peterkraume (1 commits)")[![GhislainPhu](https://avatars.githubusercontent.com/u/450791?v=4)](https://github.com/GhislainPhu "GhislainPhu (1 commits)")[![raphaelstolt](https://avatars.githubusercontent.com/u/48225?v=4)](https://github.com/raphaelstolt "raphaelstolt (1 commits)")[![ktomk](https://avatars.githubusercontent.com/u/352517?v=4)](https://github.com/ktomk "ktomk (1 commits)")

---

Tags

clean-codecode-qualitycodequalitycomposereditorconfigeditorconfig-checkerhacktoberfestlintingphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/editorconfig-checker-editorconfig-checker/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[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)[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)
