PHPackages                             omz13/omz13-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. omz13/omz13-coding-standard

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

omz13/omz13-coding-standard
===========================

A Coding Standard (a set of PHPCS rules) for projects by omz13.

0.2.0(7y ago)02071[1 PRs](https://github.com/omz13/omz13-coding-standard/pulls)8MITMakefilePHP ^7.1

Since Sep 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/omz13/omz13-coding-standard)[ Packagist](https://packagist.org/packages/omz13/omz13-coding-standard)[ Docs](https://github.com/omz13/omz13-coding-standard)[ RSS](/packages/omz13-omz13-coding-standard/feed)WikiDiscussions master Synced 2mo ago

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

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

[](#coding-standard)

[![License](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667) [![Issues](https://camo.githubusercontent.com/1c38ffd6e6d16fd64e5acb4cc2e562f2d9fb63ba2f07a1541dd58d2bc00f3bd2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6f6d7a31332f6f6d7a31332d636f64696e672d7374616e64617264)](https://github.com/omz13/omz13-coding-standard/issues)

Documentation
-------------

[](#documentation)

### Purpose

[](#purpose)

This *Coding Standard* package contains a set of [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) rules.

The concept is to:

- maintain consistency of code style
- mitigate against writing stupid things.
- play nicely with `phpcbf` in that as far as possible, errors are fixable. In other words, I am lazy and the computer should do as much as it can for me.

It goes without saying that this is built on the shoulders of the rulesets developed elsewhere and I have meerly melded things together, set some options, and in theory git things right so there are no clashes between competing rules, to do achieve what I needed.

#### *omz13-k3p*

[](#omz13-k3p)

There is one ruleset provided - *omz13-k3p* - which is to be applied to [the plugins that I develop for Kirby3](https://github.com/search?q=omz13%2Fkirby3-). The resulting code style is based on my personal preferences for readability, so lots of spaces aroud things. Don't hate me for this, my eyes suck and I need the extra spacing. This ruleset is based on melding the following:

- The complete `generic` ruleset
- The complete `PSR-2` ruleset
- Some of the `Squiz` ruleset
- Some of the [Slevomat Coding Standard](https://github.com/slevomat/coding-standard).

#### Caveat

[](#caveat)

This project is very much a labor of love and a learning experience. It works for me. It may not work for you. YMMV.

### Installation

[](#installation)

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

### Use

[](#use)

Invoke `./vendor/bin/phpcs --standard=omz13-k3p ` and watch the magic happen.

As far as possible errors can be fixed by `./vendor/bin/phpcbf --standard=omz13-k3p `.

Disclaimer
----------

[](#disclaimer)

This rulesset is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using `phpcbf` to "fix" your code. If you find any issues, please [create a new issue](https://github.com/omz13/omz13-coding-standard/issues/new).

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

### Buy Me A Coffee

[](#buy-me-a-coffee)

To show your support for this project you are welcome to [buy me a coffee](https://buymeacoff.ee/omz13).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community16

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

Total

2

Last Release

2803d ago

### Community

Maintainers

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

---

Top Contributors

[![omz13](https://avatars.githubusercontent.com/u/88007?v=4)](https://github.com/omz13 "omz13 (10 commits)")

---

Tags

stylestandardcodingcs

### Embed Badge

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

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

###  Alternatives

[doctrine/coding-standard

The Doctrine Coding Standard is a set of PHPCS rules applied to all Doctrine projects.

31914.1M739](/packages/doctrine-coding-standard)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

75833.3k94](/packages/consistence-coding-standard)[leroy-merlin-br/coding-standard

The coding standard for PHP projects on LMBR

2137.0k10](/packages/leroy-merlin-br-coding-standard)[mnapoli/pretty

Run all code formatting tools with one command: pretty

1085.1k9](/packages/mnapoli-pretty)

PHPackages © 2026

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