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 1mo ago

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 10% 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

1239d 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

[wp-coding-standards/wpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

2.7k42.5M1.6k](/packages/wp-coding-standards-wpcs)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/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.

21830.6M587](/packages/phpcompatibility-phpcompatibility-wp)[phpcsstandards/phpcsextra

A collection of sniffs and standards for use with PHP\_CodeSniffer.

10224.3M44](/packages/phpcsstandards-phpcsextra)[acquia/coding-standards

PHP\_CodeSniffer rules (sniffs) for Acquia coding standards

214.8M28](/packages/acquia-coding-standards)

PHPackages © 2026

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