PHPackages                             andrewnicols/moodlebestpractice - 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. andrewnicols/moodlebestpractice

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

andrewnicols/moodlebestpractice
===============================

The best-practice Moodle coding standard

v0.3.1(4y ago)016GPL-2.0-or-later

Since Feb 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/andrewnicols/moodle-best-practice-cs)[ Packagist](https://packagist.org/packages/andrewnicols/moodlebestpractice)[ RSS](/packages/andrewnicols-moodlebestpractice/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (7)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](https://docs.moodle.org/dev/Coding_style)\] with added opionated best practices.

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

[](#installation)

### Via Composer

[](#via-composer)

```
composer global require squizlabs/php_codesniffer andrewnicols/moodlebestpractice

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

6

Last Release

1532d 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 (9 commits)")

---

Tags

standardsphpcscode reviewmoodle

### Embed Badge

![Health badge](/badges/andrewnicols-moodlebestpractice/health.svg)

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

###  Alternatives

[phpcompatibility/php-compatibility

A set of sniffs for PHP\_CodeSniffer that checks for PHP cross-version compatibility.

2.3k74.3M1.3k](/packages/phpcompatibility-php-compatibility)[automattic/vipwpcs

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

25510.2M144](/packages/automattic-vipwpcs)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

217736.5k29](/packages/wptrt-wpthemereview)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)[orisai/coding-standard

Strict PHP coding standard

19193.5k62](/packages/orisai-coding-standard)

PHPackages © 2026

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