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

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

codelytv/coding-style
=====================

PHP Coding Style rules we use in Codely

1.3.0(1y ago)5633.5k↓17.9%28AGPL-3.0-or-laterPHP

Since Oct 23Pushed 1y ago2 watchersCompare

[ Source](https://github.com/CodelyTV/php-coding_style-codely)[ Packagist](https://packagist.org/packages/codelytv/coding-style)[ Fund](https://bit.ly/CodelyTvPro)[ RSS](/packages/codelytv-coding-style/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (8)

 [ ![](https://user-images.githubusercontent.com/10558907/170513882-a09eee57-7765-4ca4-b2dd-3c2e061fdad0.png) ](https://codely.com)

 ✍️ Codely's Easy Coding Standards configuration
=================================================

[](#--️-codelys-easy-coding-standards-configuration)

 [![Codely Open Source](https://camo.githubusercontent.com/74a2b47869f204939d1f91f14386fe907976c1b210e267f605681bf5ff3e43d3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f64656c7954562d4f532d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/CodelyTV) [![CodelyTV Courses](https://camo.githubusercontent.com/4961c0dc69c11f67795c00c4bb25e602b395ef9fd41dbfbfada8046d19cbdecf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f64656c7954562d50524f2d626c61636b2e7376673f7374796c653d666c61742d737175617265)](https://pro.codely.com)

 Opinionated linting configuration considering modern PHP best practices and providing consistency. 👌

 Take a look, play and have fun with this. [Stars are welcome 😊](https://github.com/CodelyTV/php-coding_style-codely/stargazers)

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

[](#-how-to-use)

1. Install the dependency ```
    composer require --dev codelytv/coding-style
    ```
2. Add it to your `ecs.php` file: ```
    use CodelyTv\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);
    ```

📦 How to release a new version
------------------------------

[](#-how-to-release-a-new-version)

Simply create a new [GitHub Release](https://github.com/CodelyTV/php-coding_style-codely/releases/new) following semantic versioning.

👌 Codely Code Quality Standards
-------------------------------

[](#-codely-code-quality-standards)

Publishing this package we are committing ourselves to the following code quality standards:

- 🤝 Respect **Semantic Versioning**: No breaking changes in patch or minor versions
- 🤏 No surprises in transitive dependencies: Use the **bare minimum dependencies** needed to meet the purpose
- 🎯 **One specific purpose** to meet without having to carry a bunch of unnecessary other utilities
- 📖 **Well documented Readme** showing how to install and use
- ⚖️ **License favoring Open Source** and collaboration

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity48

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

Recently: every ~72 days

Total

8

Last Release

651d ago

Major Versions

0.9.0 → 1.0.02023-10-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e1b70b2476930e7a394a09d09ee2eea487514acb4dbda6d4dc8b1da2caa607f?d=identicon)[rgomezcasas](/maintainers/rgomezcasas)

---

Top Contributors

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

---

Tags

coding-styleeasy-coding-standardphpphp-cs-fixerphpcsstatic analysisCode style

### Embed Badge

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

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

###  Alternatives

[phpdocumentor/reflection-common

Common reflection classes used by phpdocumentor to reflect the code structure

9.1k706.8M26](/packages/phpdocumentor-reflection-common)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k234.7M20.6k](/packages/friendsofphp-php-cs-fixer)[phpstan/extension-installer

Composer plugin for automatic installation of PHPStan extensions

50398.1M8.3k](/packages/phpstan-extension-installer)[icanhazstring/composer-unused

Show unused packages by scanning your code

1.7k7.0M188](/packages/icanhazstring-composer-unused)[shipmonk/composer-dependency-analyser

Fast detection of composer dependency issues (dead dependencies, shadow dependencies, misplaced dependencies)

6156.7M435](/packages/shipmonk-composer-dependency-analyser)[staabm/side-effects-detector

A static analysis tool to detect side effects in PHP code

15476.3M16](/packages/staabm-side-effects-detector)

PHPackages © 2026

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