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

ActiveProject

pnnl/editorconfig
=================

Use GrumPHP to ensure files conform to .editorconfig settings

1.0.1(8y ago)133MITPHPPHP ^7.1

Since Mar 19Pushed 6y ago3 watchersCompare

[ Source](https://github.com/pnnl/editorconfig)[ Packagist](https://packagist.org/packages/pnnl/editorconfig)[ RSS](/packages/pnnl-editorconfig/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (10)Versions (3)Used By (0)

EditorConfig
============

[](#editorconfig)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://github.com/PNNL/editorconfig/blob/master/LICENSE.md)[![Travis CI](https://camo.githubusercontent.com/788777fbc0b6d27041828a794df74ee2d3db14f4472e0a2a9370dfd7235f7738/68747470733a2f2f7472617669732d63692e6f72672f706e6e6c2f656469746f72636f6e6669672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pnnl/drupal-installer)[![Coverage Status](https://camo.githubusercontent.com/213cc7e73213e39fae023842541ab3bfe8c127de2ae62e697ca2e625cfc8dff3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f706e6e6c2f656469746f72636f6e6669672f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/pnnl/editorconfig?branch=master)

Ensure files conform to `.editorconfig` file settings.

How it works
------------

[](#how-it-works)

Uses [`editorconfig-checker/editorconfig-checker`](https://packagist.org/packages/editorconfig-checker/editorconfig-checker)to verify your files follow the rules defined in your `.editorconfig` file.

How to use:
-----------

[](#how-to-use)

Add the package to your `composer.json` file:

```
composer require --dev pnnl/editorconfig
```

Add the extension to your `grumphp.yml` file:

```
#grumphp.yml
parameters:
  extensions:
    - Pnnl\EditorConfig\Extension\Loader
```

Add and configure the tasks as defined below in the "Parameters" section.

Parameters:
-----------

[](#parameters)

```
#grumphp.yml
parameters:
  tasks:
    editorconfig:
      auto_fix: false
      dotfiles: false
      ignore_defaults: false
      ignore_patterns: []
      list_files: false
      triggered_by: []
```

**auto\_fix**

*Default: false*

Will automatically fix fixable issues (insert\_final\_newline, end\_of\_line, trim\_trailing\_whitespace, tabs to spaces). See [README](https://github.com/editorconfig-checker/editorconfig-checker.php/blob/master/README.md) for location of autofixed files.

**dotfiles**

*Default: false*

Use this flag if you want to exclude dotfiles.

**ignore\_defaults**

*Default: false*

Will ignore default excludes, see [README](https://github.com/editorconfig-checker/editorconfig-checker.php/blob/master/README.md) for details.

**ignore\_patterns**

*Default: \[\]*

String or regex to filter files which should not be checked.

*Example:*

```
parameters:
  tasks:
    editorconfig:
      ignored_patterns:
        - '.(yml|yaml)' # ignore all files ending in yml or yaml
        - '.json' # ignore all files ending in json
        - 'tests/' # ignore all files in the tests folder
```

**list\_files**

*Default: false*

Will print all files which are checked to stdout (will only output if there is an error).

**triggered\_by**

*Default: \[\]*

This is a list of extensions that should be checked. Leave empty for all.

*Example:*

```
parameters:
  tasks:
    editorconfig:
      triggered_by:
        - yml
        - yaml
        - json
        - php
```

Disclaimer
----------

[](#disclaimer)

This material was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.

Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.

PACIFIC NORTHWEST NATIONAL LABORATORY
*operated by*
BATTELLE
*for the*
UNITED STATES DEPARTMENT OF ENERGY
*under Contract DE-AC05-76RL01830*

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

2977d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.0.1PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/42e903ce7d9fc3343a6a6ea695ebdb517479ba685bb377b4e52bf53a4340f7d6?d=identicon)[dev-central@pnnl.gov](/maintainers/dev-central@pnnl.gov)

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

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

![](https://www.gravatar.com/avatar/7e18b258fdcc1e776b0419c46088ac66b60580692af480c71375cfe0eb4d88c7?d=identicon)[jamesmarks](/maintainers/jamesmarks)

---

Top Contributors

[![thomscode](https://avatars.githubusercontent.com/u/2176970?v=4)](https://github.com/thomscode "thomscode (26 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[jonmldr/grumphp-doctrine-task

This library provides Doctrine's schema validation in Symfony projects as a GrumPHP task.

1396.3k](/packages/jonmldr-grumphp-doctrine-task)

PHPackages © 2026

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