PHPackages                             andrewnicols/moodle-cs-strict - 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. andrewnicols/moodle-cs-strict

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

andrewnicols/moodle-cs-strict
=============================

The Moodle coding standard with added standards to make it stricter

v0.1.1(3y ago)012GPL-2.0-or-later

Since Dec 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/andrewnicols/moodle-cs-strict)[ Packagist](https://packagist.org/packages/andrewnicols/moodle-cs-strict)[ RSS](/packages/andrewnicols-moodle-cs-strict/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (4)Versions (3)Used By (0)

Moodle Coding Style with added Best Practice
============================================

[](#moodle-coding-style-with-added-best-practice)

This is an extended version of the [Moodle Coding style](https://docs.moodle.org/dev/Coding_style) with added opinionated best practices.

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

[](#installation)

### Via Composer

[](#via-composer)

```
composer global require andrewnicols/moodle-cs-strict

```

Configuration
-------------

[](#configuration)

Note: This configuration depends on MDL-76272 having landed

1. Create a new `.phpcs.xml` file in your repository with the content:

```

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

1292d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/af50aff7bc9a1b0863806f0a384ce233451b87a1425b4b4de51aea64810ace59?d=identicon)[andrewnicols](/maintainers/andrewnicols)

---

Top Contributors

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

---

Tags

standardsphpcscode reviewmoodle

### Embed Badge

![Health badge](/badges/andrewnicols-moodle-cs-strict/health.svg)

```
[![Health](https://phpackages.com/badges/andrewnicols-moodle-cs-strict/health.svg)](https://phpackages.com/packages/andrewnicols-moodle-cs-strict)
```

###  Alternatives

[drupal/coder

Coder is a library to review Drupal code.

3045.9M576](/packages/drupal-coder)[phpcompatibility/phpcompatibility-wp

A ruleset for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.

22134.3M759](/packages/phpcompatibility-phpcompatibility-wp)[acquia/coding-standards

PHP\_CodeSniffer rules (sniffs) for Acquia coding standards

225.0M35](/packages/acquia-coding-standards)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.2M34](/packages/yoast-yoastcs)[ec-europa/qa-automation

Extra php codesniffs for QualityAssurance.

11297.1k4](/packages/ec-europa-qa-automation)[moxio/php-codesniffer-sniffs

Custom sniffs for PHP\_CodeSniffer

18294.6k4](/packages/moxio-php-codesniffer-sniffs)

PHPackages © 2026

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