PHPackages                             slimapi/coding-standard - 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. slimapi/coding-standard

ActiveLibrary

slimapi/coding-standard
=======================

SlimAPI Coding Standard

v2.0.1(1y ago)01121[1 PRs](https://github.com/slimapi/coding-standard/pulls)MITPHPPHP ^8.3

Since May 16Pushed 1y agoCompare

[ Source](https://github.com/slimapi/coding-standard)[ Packagist](https://packagist.org/packages/slimapi/coding-standard)[ RSS](/packages/slimapi-coding-standard/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (12)Used By (0)

✅ SlimAPI Coding Standard
=========================

[](#-slimapi-coding-standard)

[![PHP Version](https://camo.githubusercontent.com/ea92be935d1881d82a21f5347c2ae969c4a0e18f416ad8e2a9ccffe1d79b2b40/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f736c696d6170692f636f64696e672d7374616e646172642f7068703f6c6162656c3d504850267374796c653d666c61742d737175617265)](https://packagist.org/packages/slimapi/coding-standard)[![Release](https://camo.githubusercontent.com/05d9de012af781297f3a260155d4be44a12d8806242a2faa5c36dd3a5eb2b3cb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f736c696d6170692f636f64696e672d7374616e646172642e7376673f6c6162656c3d52656c65617365267374796c653d666c61742d737175617265)](https://github.com/slimapi/coding-standard/tags)[![License](https://camo.githubusercontent.com/69932951333b9972031e9b4ac059ec27ae8487fcea3506f2f81721670308af5a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736c696d6170692f636f64696e672d7374616e646172643f7374796c653d666c61742d737175617265266c6162656c3d4c6963656e736526636f6c6f723d626c7565)](LICENSE.md)[![Build](https://camo.githubusercontent.com/68274b9e5b208d33e3e2db07fcd0bb5c6b5dae58ccdbcf0b995d3b7c3f164048/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736c696d6170692f636f64696e672d7374616e646172642f63692e79616d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265266c6162656c3d4275696c64)](https://github.com/slimapi/coding-standard/actions)[![Code Coverage](https://camo.githubusercontent.com/68c1317dc5371f65116f90a0d9c7e3a28a86de26edd370f20789e95f2a38c0ca/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f736c696d6170692f636f64696e672d7374616e646172642f6d61737465723f7374796c653d666c61742d737175617265266c6162656c3d436f766572616765)](https://codecov.io/gh/slimapi/coding-standard)[![PHPStan](https://camo.githubusercontent.com/c595c603731bfeae600d974bd083577aef779a7fa6353c5f5f8cbf54adc31987/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374796c652d253230392532302532387374726963742532392d627269676874677265656e2e7376673f266c6162656c3d5048505374616e267374796c653d666c61742d737175617265)](phpstan.neon)

A PHP coding standard for better code **readability**, **consistency**, and adherence to **best practices**.

✨ Features
----------

[](#-features)

- **Modern Standards**: Built on [PER Coding Style 2.0](https://www.php-fig.org/per/coding-style/) and [Slevomat Coding Standard](https://github.com/slevomat/coding-standard/tree/master/SlevomatCodingStandard/Sniffs).
- **Customizable Rules**: Check the [ruleset.xml](src/ruleset.xml) for details on the applied standards.
- **Full Sniff List**: Explore the [sniffs list](SNIFFS.txt) for a comprehensive overview.

📘 Documentation
---------------

[](#-documentation)

Dive into our [Code Style Guide](STANDARD.md) for a detailed explanation of our coding practices.

📦 Installation
--------------

[](#-installation)

1. Add the dependency to your project: ```
    composer require --dev slimapi/coding-standard
    ```
2. Create a `phpcs.yml` file in the project root: ```

        src

    ```

🛠️ Local Development &amp; Testing
----------------------------------

[](#️-local-development--testing)

Clone the repo, then use the power of `make` to simplify your workflow:

```
make help  # See all available commands
make run   # Start the app container
make test  # Run tests and code checkers
```

📜 License
---------

[](#-license)

This project is licensed under the terms specified in the [LICENSE](LICENSE.md) file.

🌟 Get Involved
--------------

[](#-get-involved)

We welcome contributions and suggestions! Please report any issues in the [issue tracker](https://github.com/slimapi/coding-standard/issues).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity77

Established project with proven stability

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

Recently: every ~307 days

Total

11

Last Release

526d ago

Major Versions

v0.6.2 → v1.0.02023-01-13

v1.0.0 → v2.0.02024-12-08

PHP version history (5 changes)v0.1.0PHP ~7.3

v0.4.0PHP ^7.4

v0.6.0PHP ^7.4 || ^8.0

v1.0.0PHP ^8.1

v2.0.1PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e62ea31049737ce1834189e19ca8d96714cbac6ed8b87d7386a251c27db10e0?d=identicon)[o5](/maintainers/o5)

---

Top Contributors

[![o5](https://avatars.githubusercontent.com/u/218562?v=4)](https://github.com/o5 "o5 (24 commits)")

---

Tags

code-stylecoding-standardphpphp-codesnifferphpcs

### Embed Badge

![Health badge](/badges/slimapi-coding-standard/health.svg)

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

###  Alternatives

[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k13](/packages/shopsys-coding-standards)

PHPackages © 2026

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