PHPackages                             moodlehq/moodle-local\_codechecker - 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. moodlehq/moodle-local\_codechecker

ActiveLibrary

moodlehq/moodle-local\_codechecker
==================================

A Moodle local plugin providing a simple web UI to run the MoodleCS standard checks with PHP\_CodeSniffer.

v5.1.0(5mo ago)6716975[6 issues](https://github.com/moodlehq/moodle-local_codechecker/issues)[2 PRs](https://github.com/moodlehq/moodle-local_codechecker/pulls)4GPL-3.0-or-laterPHPPHP &gt;=7.4CI failing

Since Feb 25Pushed 5mo ago23 watchersCompare

[ Source](https://github.com/moodlehq/moodle-local_codechecker)[ Packagist](https://packagist.org/packages/moodlehq/moodle-local_codechecker)[ RSS](/packages/moodlehq-moodle-local-codechecker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (17)Used By (4)

Moodle Code Checker
===================

[](#moodle-code-checker)

[![Codechecker CI](https://github.com/moodlehq/moodle-local_codechecker/actions/workflows/ci.yml/badge.svg)](https://github.com/moodlehq/moodle-local_codechecker/actions/workflows/ci.yml)

Information
-----------

[](#information)

This Moodle plugin uses the [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) tool to check that code follows the [Moodle coding style](https://moodledev.io/general/development/policies/codingstyle). It uses the [Moodle Coding Style](https://github.com/moodlehq/moodle-cs) 'sniffs' that check many aspects of the code, including the awesome [PHPCompatibility](https://github.com/PHPCompatibility/PHPCompatibility) ones.

It was created by developers at the Open University, including Sam Marshall, Tim Hunt and Jenny Gray. It is now maintained by Moodle HQ.

Available releases can be downloaded and installed from [https://moodle.org/plugins/view.php?plugin=local\_codechecker](https://moodle.org/plugins/view.php?plugin=local_codechecker).

To install it using git, type this command in the root of your Moodle install:

```
git clone https://github.com/moodlehq/moodle-local_codechecker.git local/codechecker

```

Then add /local/codechecker to your git ignore.

Additionally, remember to only use the version of PHPCS located in `phpcs/bin/phpcs` rather than installing PHPCS directly. Add the location of the PHPCS executable to your system path, tell PHPCS about the Moodle coding standard with `phpcs --config-set installed_paths /path/to/moodle-local_codechecker` and set the default coding standard to Moodle with `phpcs --config-set default_standard moodle`. You can now test a file (or folder) with: `phpcs /path/to/file.php`.

Alternatively, download the zip from [https://github.com/moodlehq/moodle-local\_codechecker/zipball/main](https://github.com/moodlehq/moodle-local_codechecker/zipball/main), unzip it into the local folder, and then rename the new folder to "codechecker".

After you have installed this local plugin, you should see a new option in the settings block:

> Site administration -&gt; Development -&gt; Code checker

We hope you find this tool useful. Feel free to enhance it! Also, you can report any idea or bug using GitHub's issues and pull requests, thanks!

Integrations
------------

[](#integrations)

Since version v4.0.0 this plugin shouldn't be used as source for any integration with IDEs or tools, and [Moodle Coding Style](https://github.com/moodlehq/moodle-cs) (the new source for the moodle-cs standard) should be used instead.

Please refer to the information available in that repository to know more about how to install, configure and integrate it with your development environment.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance69

Regular maintenance activity

Popularity31

Limited adoption so far

Community38

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.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

Every ~91 days

Recently: every ~31 days

Total

16

Last Release

161d ago

Major Versions

v3.1.0 → v5.0.02023-09-26

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/8aa132a6b5f982e20f7d7b00cd7255671b228e77ccbf29a24b66eb42353b9d96?d=identicon)[stronk7](/maintainers/stronk7)

---

Top Contributors

[![stronk7](https://avatars.githubusercontent.com/u/167147?v=4)](https://github.com/stronk7 "stronk7 (395 commits)")[![timhunt](https://avatars.githubusercontent.com/u/138653?v=4)](https://github.com/timhunt "timhunt (43 commits)")[![andrewnicols](https://avatars.githubusercontent.com/u/370047?v=4)](https://github.com/andrewnicols "andrewnicols (35 commits)")[![danpoltawski](https://avatars.githubusercontent.com/u/533249?v=4)](https://github.com/danpoltawski "danpoltawski (20 commits)")[![sarjona](https://avatars.githubusercontent.com/u/900389?v=4)](https://github.com/sarjona "sarjona (19 commits)")[![vmdef](https://avatars.githubusercontent.com/u/38071202?v=4)](https://github.com/vmdef "vmdef (15 commits)")[![polothy](https://avatars.githubusercontent.com/u/634657?v=4)](https://github.com/polothy "polothy (11 commits)")[![ziegenberg](https://avatars.githubusercontent.com/u/856916?v=4)](https://github.com/ziegenberg "ziegenberg (6 commits)")[![kabalin](https://avatars.githubusercontent.com/u/329780?v=4)](https://github.com/kabalin "kabalin (5 commits)")[![sammarshallou](https://avatars.githubusercontent.com/u/68663?v=4)](https://github.com/sammarshallou "sammarshallou (3 commits)")[![mudrd8mz](https://avatars.githubusercontent.com/u/85831?v=4)](https://github.com/mudrd8mz "mudrd8mz (3 commits)")[![ankitagarwal](https://avatars.githubusercontent.com/u/596844?v=4)](https://github.com/ankitagarwal "ankitagarwal (3 commits)")[![junpataleta](https://avatars.githubusercontent.com/u/13312075?v=4)](https://github.com/junpataleta "junpataleta (2 commits)")[![brendanheywood](https://avatars.githubusercontent.com/u/187449?v=4)](https://github.com/brendanheywood "brendanheywood (2 commits)")[![garemoko](https://avatars.githubusercontent.com/u/1363163?v=4)](https://github.com/garemoko "garemoko (1 commits)")[![roperto](https://avatars.githubusercontent.com/u/3672494?v=4)](https://github.com/roperto "roperto (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![cameron1729](https://avatars.githubusercontent.com/u/89116254?v=4)](https://github.com/cameron1729 "cameron1729 (1 commits)")[![aspark21](https://avatars.githubusercontent.com/u/4015496?v=4)](https://github.com/aspark21 "aspark21 (1 commits)")[![Peterburnett](https://avatars.githubusercontent.com/u/21162968?v=4)](https://github.com/Peterburnett "Peterburnett (1 commits)")

---

Tags

phpcsmoodlecodesniffercoding-stylelocal pluginmoodle-cs

### Embed Badge

![Health badge](/badges/moodlehq-moodle-local-codechecker/health.svg)

```
[![Health](https://phpackages.com/badges/moodlehq-moodle-local-codechecker/health.svg)](https://phpackages.com/packages/moodlehq-moodle-local-codechecker)
```

###  Alternatives

[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[moodlehq/moodle-cs

Moodle Coding Sniffer rules

242.8M5](/packages/moodlehq-moodle-cs)[spryker/code-sniffer

Spryker Code Sniffer Standards

374.1M2.3k](/packages/spryker-code-sniffer)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

75833.3k94](/packages/consistence-coding-standard)[inpsyde/php-coding-standards

PHP 7.4+ coding standards for Syde WordPress projects.

101163.9k45](/packages/inpsyde-php-coding-standards)[suin/phpcs-psr4-sniff

PHP\_CodeSniffer sniff that checks class name matches PSR-4 project structure.

271.7M16](/packages/suin-phpcs-psr4-sniff)

PHPackages © 2026

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