PHPackages                             moodlerooms/moodle-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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. moodlerooms/moodle-coding-standard

Abandoned → [blackboard-open-source/moodle-coding-standard](/?search=blackboard-open-source%2Fmoodle-coding-standard)Library[PSR &amp; Standards](/categories/psr-standards)

moodlerooms/moodle-coding-standard
==================================

Moodle CodeSniffer Standards

2.0.3(9y ago)1151.6k1GPL-3.0PHP &gt;=5.4.0

Since Sep 8Compare

[ Source](https://github.com/moodlerooms/moodle-coding-standard)[ Packagist](https://packagist.org/packages/moodlerooms/moodle-coding-standard)[ RSS](/packages/moodlerooms-moodle-coding-standard/feed)WikiDiscussions Synced yesterday

READMEChangelogDependencies (1)Versions (6)Used By (1)

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

[](#introduction)

This project is simply a way to package up and distribute the Moodle Coding Standard which is defined in the following project: [moodle-local\_codechecker](https://github.com/moodlehq/moodle-local_codechecker)

This project does not attempt to do anything else. If there are problems with the standard, then the problems should be addressed in the `moodle-local_codechecker` project. Once the problem is fixed, it can be synced from `moodle-local_codechecker` into this project.

[![Latest Stable Version](https://camo.githubusercontent.com/8c0ab6ead60ba695362535ac1e749519541dd1193acbbc5a15165cbbee440b79/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b626f6172642d6f70656e2d736f757263652f6d6f6f646c652d636f64696e672d7374616e646172642f762f737461626c65)](https://packagist.org/packages/blackboard-open-source/moodle-coding-standard)[![Total Downloads](https://camo.githubusercontent.com/5b4800c8988c1dc650cf563ade4b2ad6514a3abaed3667a8beed53a22c3c5a4c/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b626f6172642d6f70656e2d736f757263652f6d6f6f646c652d636f64696e672d7374616e646172642f646f776e6c6f616473)](https://packagist.org/packages/blackboard-open-source/moodle-coding-standard)[![License](https://camo.githubusercontent.com/3c65eb2c232bb2b92460176af430bac3a5fd95a65f018bee7a3ae94e9372489e/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b626f6172642d6f70656e2d736f757263652f6d6f6f646c652d636f64696e672d7374616e646172642f6c6963656e7365)](https://packagist.org/packages/blackboard-open-source/moodle-coding-standard)

Install
=======

[](#install)

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

```
composer require --dev blackboard-open-source/moodle-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=vendor/blackboard-open-source/moodle-coding-standard/moodle /path/to/moodle/plugin

```

Credits
=======

[](#credits)

All praise should go to the contributors of [moodle-local\_codechecker](https://github.com/moodlehq/moodle-local_codechecker).

License
=======

[](#license)

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

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

3558d ago

Major Versions

1.0.0 → 2.0.02016-02-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ad73f7bd03178513977497215e3755b5b9f14977fb1537379e2a9a1d8a3de5a?d=identicon)[blackboard-open-source](/maintainers/blackboard-open-source)

---

Tags

moodlecodesniffer

### Embed Badge

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

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

###  Alternatives

[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M44](/packages/dereuromark-cakephp-ide-helper)[moodlehq/moodle-cs

Moodle Coding Sniffer rules

263.2M6](/packages/moodlehq-moodle-cs)

PHPackages © 2026

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