PHPackages                             johninamillion/php-code-styles - 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. johninamillion/php-code-styles

ActiveLibrary

johninamillion/php-code-styles
==============================

PHP-CS-Fixer configuration and PHPStan setup for PHP projects.

0.2.0(7mo ago)1402MITPHPPHP ^8.2CI passing

Since Sep 13Pushed 7mo agoCompare

[ Source](https://github.com/johninamillion/php-code-styles)[ Packagist](https://packagist.org/packages/johninamillion/php-code-styles)[ RSS](/packages/johninamillion-php-code-styles/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (6)Used By (2)

PHP Code-Styles
===============

[](#php-code-styles)

PHP Code-Styles for [PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer).

[![PHPStan](https://github.com/johninamillion/php-code-styles/actions/workflows/phpstan.yml/badge.svg)](https://github.com/johninamillion/php-code-styles/actions/workflows/phpstan.yml)

---

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [License](#license)

---

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require --dev johninamillion/php-code-styles
```

Add the following scripts to your `composer.json` file:

```
{
    "scripts": {
        "post-install-cmd": [
            "johninamillion\\CodeStyles\\Composer::install"
        ],
        "post-update-cmd": [
            "johninamillion\\CodeStyles\\Composer::update"
        ],
        "code:analyse": "./vendor/bin/phpstan analyse",
        "code:format": "./vendor/bin/php-cs-fixer fix"
    }
}
```

---

Usage
-----

[](#usage)

Fix code styles with PHP-CS-Fixer:

```
composer code:format
```

Analyse your code with PHPStan:

```
composer code:analyse
```

---

License
-------

[](#license)

This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.

---

All Glory To God - The Father, The Son, and The Holy Spirit.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance62

Regular maintenance activity

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

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

Total

5

Last Release

233d ago

PHP version history (2 changes)0.1.0PHP ^8.4

0.2.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ff389f6dcac477647cab83abc65187f135c0b615687bae3172f2bb28e9297a8?d=identicon)[johninamio](/maintainers/johninamio)

---

Top Contributors

[![johninamillion](https://avatars.githubusercontent.com/u/31989151?v=4)](https://github.com/johninamillion "johninamillion (16 commits)")

---

Tags

phpPHPStanphp-cs-fixer

### Embed Badge

![Health badge](/badges/johninamillion-php-code-styles/health.svg)

```
[![Health](https://phpackages.com/badges/johninamillion-php-code-styles/health.svg)](https://phpackages.com/packages/johninamillion-php-code-styles)
```

###  Alternatives

[larastan/larastan

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

6.4k43.5M5.2k](/packages/larastan-larastan)[yamadashy/phpstan-friendly-formatter

Simple error formatter for PHPStan that display code frame

64573.8k34](/packages/yamadashy-phpstan-friendly-formatter)[sci3ma/symfony-grumphp

Configured GrumPHP with bunch of tools for static code analysis Symfony Framework

196.7k](/packages/sci3ma-symfony-grumphp)

PHPackages © 2026

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