PHPackages                             hereldar/coding-style - 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. hereldar/coding-style

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

hereldar/coding-style
=====================

PHP Coding Style rules for my projects.

0.1.3(1y ago)01.2k↓75%2MITPHP

Since Mar 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hereldar/php-coding-style)[ Packagist](https://packagist.org/packages/hereldar/coding-style)[ RSS](/packages/hereldar-coding-style/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (2)

Hereldar's Easy Coding Standards configuration
==============================================

[](#hereldars-easy-coding-standards-configuration)

[![PHP](https://camo.githubusercontent.com/be375045fdd67f93fbe52373616016fdc1466cd04101d78f47f5c5bda384d048/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e30253230746f253230382e332d3737376262332e737667)](https://coveralls.io/github/hereldar/php-coding-style)[![Type Coverage](https://camo.githubusercontent.com/2c9d87587c60e9e355ffa70933fc0cc22d11ccbe846c9895e31db23ff65a1f61/68747470733a2f2f73686570686572642e6465762f6769746875622f686572656c6461722f7068702d636f64696e672d7374796c652f636f7665726167652e737667)](https://shepherd.dev/github/hereldar/php-coding-style)[![Psalm Level](https://camo.githubusercontent.com/a79eeecfb0ecd434737612a02cad46e9b6f31892e873aba9730398342843d91e/68747470733a2f2f73686570686572642e6465762f6769746875622f686572656c6461722f7068702d636f64696e672d7374796c652f6c6576656c2e737667)](https://shepherd.dev/github/hereldar/php-coding-style)[![Packagist](https://camo.githubusercontent.com/cb5d62d602212ae5db9de290744be0fb5107869158c6129dd28cd2e16eba27f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f686572656c6461722f636f64696e672d7374796c652e737667)](https://packagist.org/packages/hereldar/coding-style)[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)

Opinionated linting configuration inspired on [Codely's Coding Style](https://github.com/CodelyTV/php-coding_style-codely).

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

[](#how-to-use)

Install the package via Composer:

```
composer require --dev hereldar/coding-style
```

Create a `ecs.php` file in the root of your project:

```
use Hereldar\CodingStyle;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return ECSConfig
    ::configure()
    ->withSets([
        CodingStyle::PROJECTS,
    ])
    ->withPaths([
        __DIR__.'/src',
        __DIR__.'/tests',
    ])
    ->withRootFiles();
```

Execute the following command to see the suggested changes:

```
vendor/bin/ecs
```

To actually fix your code, add `--fix`:

```
vendor/bin/ecs --fix
```

For more information, check the [Easy Coding Standard documentation](https://github.com/easy-coding-standard/easy-coding-standard)

What it does
------------

[](#what-it-does)

Checks the code style of your project using:

- [PER Coding Style](https://www.php-fig.org/per/coding-style/)
- [Symfony](https://symfony.com/doc/current/contributing/code/standards.html)
- Some custom rules (you can see them [here](sets)).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 93.3% 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 ~35 days

Total

4

Last Release

695d ago

### Community

Maintainers

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

---

Top Contributors

[![samuelmaudo](https://avatars.githubusercontent.com/u/248153?v=4)](https://github.com/samuelmaudo "samuelmaudo (14 commits)")[![hereldar](https://avatars.githubusercontent.com/u/83026166?v=4)](https://github.com/hereldar "hereldar (1 commits)")

---

Tags

Code style

###  Code Quality

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hereldar-coding-style/health.svg)

```
[![Health](https://phpackages.com/badges/hereldar-coding-style/health.svg)](https://phpackages.com/packages/hereldar-coding-style)
```

###  Alternatives

[typo3/coding-standards

A set of coding guidelines for any TYPO3-related project or extension

662.8M379](/packages/typo3-coding-standards)[malukenho/docheader

A small library to check header docs

68380.8k136](/packages/malukenho-docheader)[jubeki/laravel-code-style

Combine Custom Fixers with the ruleset of Laravel Pint to fix your code style in Laravel Applications/Packages.

56521.7k8](/packages/jubeki-laravel-code-style)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k13](/packages/shopsys-coding-standards)[codelytv/coding-style

PHP Coding Style rules we use in Codely

5633.5k8](/packages/codelytv-coding-style)

PHPackages © 2026

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