PHPackages                             mikelooper/code-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. [Testing &amp; Quality](/categories/testing)
4. /
5. mikelooper/code-style

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

mikelooper/code-style
=====================

PHP Code Style rules

0.0.2(2y ago)04447MITPHP

Since Nov 15Pushed 2y agoCompare

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

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

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

[](#-how-to-use)

1. Install the dependency ```
    composer require --dev mikelooper/coding-style
    ```
2. Add it to your `ecs.php` file: ```
    use Shared\Infrastructure\CodingStyle;
    use Symplify\EasyCodingStandard\Config\ECSConfig;

    return function (ECSConfig $ecsConfig): void {
        $ecsConfig->paths([__DIR__ . '/src',]);

        $ecsConfig->sets([CodingStyle::DEFAULT]);

        // Or this if you prefer to have the code aligned
        // $ecsConfig->sets([CodingStyle::ALIGNED]);
    };
    ```
3. Execute it: ```
    ./vendor/bin/ecs check
    ```

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

[](#-what-it-does)

- Lints PHP using PSR-12
- Extends some config (you can see all the rules [here](src/coding_style.php))
- Use tabs to indent ([reason](https://www.youtube.com/watch?v=yD2T42zsP7c)). If you want to use spaces, you can add the following line at the end of your `ecs.php`: ```
    use Symplify\EasyCodingStandard\ValueObject\Option;

    $ecsConfig->indentation(Option::INDENTATION_SPACES);
    ```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 59.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 ~12 days

Total

2

Last Release

902d ago

### Community

Maintainers

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

---

Top Contributors

[![mikel00per](https://avatars.githubusercontent.com/u/26721529?v=4)](https://github.com/mikel00per "mikel00per (16 commits)")[![rgomezcasas](https://avatars.githubusercontent.com/u/1331435?v=4)](https://github.com/rgomezcasas "rgomezcasas (11 commits)")

---

Tags

static analysisCode style

### Embed Badge

![Health badge](/badges/mikelooper-code-style/health.svg)

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

###  Alternatives

[phpstan/phpstan

PHPStan - PHP Static Analysis Tool

13.9k341.8M29.6k](/packages/phpstan-phpstan)[symplify/easy-coding-standard

Use Coding Standard with 0-knowledge of PHP-CS-Fixer and PHP\_CodeSniffer.

1.6k34.6M1.5k](/packages/symplify-easy-coding-standard)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[wp-coding-standards/wpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

2.7k42.5M1.6k](/packages/wp-coding-standards-wpcs)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

78268.9M1.5k](/packages/phpstan-phpstan-symfony)

PHPackages © 2026

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