PHPackages                             poetgroup/poet-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. [Testing &amp; Quality](/categories/testing)
4. /
5. poetgroup/poet-coding-standard

ActiveLibrary[Testing &amp; Quality](/categories/testing)

poetgroup/poet-coding-standard
==============================

POET CodeSniffer Standards

1.0.0(10y ago)03.7k5[2 PRs](https://github.com/POETGroup/poet-coding-standard/pulls)GPL-3.0PHPPHP &gt;=5.4.0

Since Sep 8Pushed 9y ago2 watchersCompare

[ Source](https://github.com/POETGroup/poet-coding-standard)[ Packagist](https://packagist.org/packages/poetgroup/poet-coding-standard)[ RSS](/packages/poetgroup-poet-coding-standard/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (10)Used By (0)

Introduction
============

[](#introduction)

This is the POET Group's coding standard. This standard is primarily focused on assisting with code reviews. For example, warning the code reviewer about potential security or performance problems.

Please visit the [coding standard documentation](POET.md) for further details.

Install
=======

[](#install)

Just add it to your project's `composer.json` file (`--dev` is optional based on your needs):

```
composer require --dev poetgroup/poet-coding-standard

```

Usage
=====

[](#usage)

The following paths may change based on how things are installed, but basically you are looking for the path to the CodeSniffer command and the path to the `moodle` directory of this project:

```
vendor/bin/phpcs --standard=POET /path/to/moodle/plugin

```

Testing
=======

[](#testing)

In order to run the unit tests, you must ensure that you install from source otherwise, testing code from PHP\_CodeSniffer would be missing. Here is an example of re-installing dependencies and running tests:

```
rm -rf vendor/
composer install --prefer-source
vendor/bin/phpunit

```

Please also know that any **new** tests added need the `@group poet` annotation added. This ensures that only tests from the `POET` standard are run.

Documenting
===========

[](#documenting)

To update the standard's documentation, use the following command:

```
vendor/bin/phpcs --standard=POET --generator=markdown > POET.md

```

License
=======

[](#license)

This project is licensed under the GNU GPL v3 or later. See the [LICENSE](LICENSE) file for details.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 52.9% 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

Unknown

Total

1

Last Release

3948d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16323254?v=4)[Derek Henderson](/maintainers/2shediac)[@2shediac](https://github.com/2shediac)

![](https://avatars.githubusercontent.com/u/739799?v=4)[poet](/maintainers/poet)[@poet](https://github.com/poet)

---

Top Contributors

[![polothy](https://avatars.githubusercontent.com/u/634657?v=4)](https://github.com/polothy "polothy (18 commits)")[![2shediac](https://avatars.githubusercontent.com/u/16323254?v=4)](https://github.com/2shediac "2shediac (16 commits)")

---

Tags

moodlecodesniffer

### Embed Badge

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

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

###  Alternatives

[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

601170.6M2.2k](/packages/dealerdirect-phpcodesniffer-composer-installer)[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k130.4M2.1k](/packages/slevomat-coding-standard)[moodlehq/moodle-cs

Moodle Coding Sniffer rules

263.0M5](/packages/moodlehq-moodle-cs)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

76840.1k94](/packages/consistence-coding-standard)[fig-r/psr2r-sniffer

Code-Sniffer, Auto-Fixer and Tokenizer for PSR2-R

321.3M144](/packages/fig-r-psr2r-sniffer)[phpmyadmin/coding-standard

phpMyAdmin PHP\_CodeSniffer Coding Standard

201.3M7](/packages/phpmyadmin-coding-standard)

PHPackages © 2026

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