PHPackages                             marioblazek/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. marioblazek/coding-standard

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

marioblazek/coding-standard
===========================

My personal coding standard

v1.0.1(3y ago)02.9k2MITPHPPHP ^7.4 || ^8.0

Since Sep 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MarioBlazek/coding-standard)[ Packagist](https://packagist.org/packages/marioblazek/coding-standard)[ Docs](https://github.com/marioblazek/coding-standard)[ RSS](/packages/marioblazek-coding-standard/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (2)

Coding Standard
===============

[](#coding-standard)

This repository provides a default coding standard configuration. The config is based on PHP CS Fixer and inspired by the Netgen Layouts Coding Standards.

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

[](#installation)

```
$ composer require --dev marioblazek/coding-standard
```

The list of available rules can be found [here](https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/doc/rules/index.rst).

Usage
-----

[](#usage)

Create a `.php-cs-fixer.php` file in the root of your project with the following:

```
return (new Marek\CodingStandard\PhpCsFixer\Config())
    ->setFinder(
        PhpCsFixer\Finder::create()
            ->exclude(['vendor'])
            ->in(__DIR__)
    )
;
```

Run the fixer with:

```
$ vendor/bin/php-cs-fixer fix
```

Overriding existing rules
-------------------------

[](#overriding-existing-rules)

You can override rules included in this config per project:

```
return (new Marek\CodingStandard\PhpCsFixer\Config())
    ->addRules([
        'list_syntax' => ['syntax' => 'long'],
    ])
    ->setFinder(
        PhpCsFixer\Finder::create()
            ->exclude(['vendor'])
            ->in(__DIR__)
    )
;
```

Supporting PHAR distribution of PHP CS Fixer
--------------------------------------------

[](#supporting-phar-distribution-of-php-cs-fixer)

You can also support running PHAR version of PHP CS Fixer by adding the following at the top of your `.php-cs-fixer.php` file:

```
// To support running PHP CS Fixer via PHAR file (e.g. in GitHub Actions)
require_once __DIR__ . '/vendor/marioblazek/coding-standard/src/PhpCsFixer/Config.php';
```

This is e.g. useful if you wish to run PHP CS Fixer via GitHub action, which does not need running `composer install`:

```
# .github/workflows/ci.yml
name: PHP CS Fixer
on: [push, pull_request]

jobs:
  php-cs-fixer:
    name: PHP CS Fixer
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/checkout@v2
        with:
          repository: marioblazek/coding-standard
          path: vendor/marioblazek/coding-standard
      - name: PHP CS Fixer
        uses: OskarStark/php-cs-fixer-ga@master
        with:
          args: --diff --dry-run
```

Check  for more details.

Changelog
---------

[](#changelog)

Changelog is available [here](CHANGELOG.md).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

1344d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b6bff5fb3f01792d82280c2d3cb10af77f13c2087767a0d61d2a50d44bab319?d=identicon)[MarioBlazek](/maintainers/MarioBlazek)

---

Top Contributors

[![MarioBlazek](https://avatars.githubusercontent.com/u/6605175?v=4)](https://github.com/MarioBlazek "MarioBlazek (6 commits)")

---

Tags

coding-standardphpphp-cs-fixerphpCoding Standardcs-fixer

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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