PHPackages                             greencape/joomla-cs - 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. greencape/joomla-cs

Abandoned → [greencape/coding-standards](/?search=greencape%2Fcoding-standards)Library[PSR &amp; Standards](/categories/psr-standards)

greencape/joomla-cs
===================

Composer installable Joomla Coding Standards Definitions.

1.0.1(10y ago)011.6k[2 issues](https://github.com/GreenCape/coding-standards/issues)MITPHP

Since Jul 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/GreenCape/coding-standards)[ Packagist](https://packagist.org/packages/greencape/joomla-cs)[ Docs](https://github.com/GreenCape/coding-standards)[ RSS](/packages/greencape-joomla-cs/feed)WikiDiscussions master Synced 1mo ago

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

GreenCape Coding Standards
==========================

[](#greencape-coding-standards)

This repository includes Coding Standard definitions for [PHP CodeSniffer](http://pear.php.net/PHP_CodeSniffer) 2.x for use with Composer.

Currently, these Coding Standards are included:

- [Joomla! Coding Standard](http://joomla.github.io/coding-standards/)
- [WordPress Coding Standard](https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/)
- [PEAR](https://pear.php.net/manual/en/standards.php), [PSR1](http://www.php-fig.org/psr/psr-1/), [PSR2](http://www.php-fig.org/psr/psr-2/), Squiz, and [Zend](http://framework.zend.com/manual/current/en/ref/coding.standard.html) Coding Standards are provided by PHP CodeSniffer natively.

Requirements
------------

[](#requirements)

- PHP 5.3+
- [Composer](https://getcomposer.org/)

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

[](#installation)

Add this package to your requirements.

```
$ composer require --dev greencape/coding-standards:~1
```

The PHP CodeSniffer tool is installed automatically in a matching version.

You can verify a successful install with

```
$ ./vendor/bin/phpcs -i
The installed coding standards are MySource, PSR2, Squiz, Zend, PHPCS, PSR1, PEAR, WordPress and Joomla
```

Running
-------

[](#running)

You can use the installed Joomla standard like:

```
$ ./vendor/bin/phpcs --standard=Joomla path/to/code
$ ./vendor/bin/phpcbf --standard=Joomla path/to/code
```

You can use the installed WordPress standard like:

```
$ ./vendor/bin/phpcs --standard=WordPress path/to/code
$ ./vendor/bin/phpcbf --standard=WordPress path/to/code
```

In both cases, the second (`phpcbf`) line will fix some issues automatically. However, this part is work in progress, and will improve over time.

Contributing
------------

[](#contributing)

If you want to contribute to this project, you can

- fork this repo, code, and send a Pull Request
- file an issue in the [Issue Tracker](https://github.com/GreenCape/coding-standards/issues)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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

Total

3

Last Release

3839d ago

Major Versions

0.2.0 → 1.0.02015-11-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/84f7f05685e84e3fe971d8d005bb74e766204799c50a7b45036af27436cecddc?d=identicon)[GreenCape](/maintainers/GreenCape)

---

Top Contributors

[![mbabker](https://avatars.githubusercontent.com/u/368545?v=4)](https://github.com/mbabker "mbabker (21 commits)")[![nibra](https://avatars.githubusercontent.com/u/827605?v=4)](https://github.com/nibra "nibra (19 commits)")[![elkuku](https://avatars.githubusercontent.com/u/33978?v=4)](https://github.com/elkuku "elkuku (9 commits)")[![eddieajau](https://avatars.githubusercontent.com/u/700871?v=4)](https://github.com/eddieajau "eddieajau (8 commits)")[![LouisLandry](https://avatars.githubusercontent.com/u/698255?v=4)](https://github.com/LouisLandry "LouisLandry (8 commits)")[![javigomez](https://avatars.githubusercontent.com/u/1375475?v=4)](https://github.com/javigomez "javigomez (6 commits)")[![dongilbert](https://avatars.githubusercontent.com/u/718028?v=4)](https://github.com/dongilbert "dongilbert (4 commits)")[![photodude](https://avatars.githubusercontent.com/u/10253980?v=4)](https://github.com/photodude "photodude (4 commits)")[![wdburgdorf](https://avatars.githubusercontent.com/u/847971?v=4)](https://github.com/wdburgdorf "wdburgdorf (2 commits)")[![ianmacl](https://avatars.githubusercontent.com/u/176534?v=4)](https://github.com/ianmacl "ianmacl (2 commits)")[![lahmizzar](https://avatars.githubusercontent.com/u/935683?v=4)](https://github.com/lahmizzar "lahmizzar (1 commits)")[![klas](https://avatars.githubusercontent.com/u/331352?v=4)](https://github.com/klas "klas (1 commits)")[![pasamio](https://avatars.githubusercontent.com/u/163200?v=4)](https://github.com/pasamio "pasamio (1 commits)")[![CraigsOverItAll](https://avatars.githubusercontent.com/u/186670?v=4)](https://github.com/CraigsOverItAll "CraigsOverItAll (1 commits)")[![piotr-cz](https://avatars.githubusercontent.com/u/612953?v=4)](https://github.com/piotr-cz "piotr-cz (1 commits)")[![realityking](https://avatars.githubusercontent.com/u/628508?v=4)](https://github.com/realityking "realityking (1 commits)")[![stefanneculai](https://avatars.githubusercontent.com/u/637004?v=4)](https://github.com/stefanneculai "stefanneculai (1 commits)")[![brianteeman](https://avatars.githubusercontent.com/u/1296369?v=4)](https://github.com/brianteeman "brianteeman (1 commits)")

---

Tags

standardsphpcsjoomla

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/greencape-joomla-cs/health.svg)

```
[![Health](https://phpackages.com/badges/greencape-joomla-cs/health.svg)](https://phpackages.com/packages/greencape-joomla-cs)
```

###  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.2M145](/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)[joomla/coding-standards

Joomla Coding Standards

129231.7k16](/packages/joomla-coding-standards)[mayflower/mo4-coding-standard

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

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

PHPackages © 2026

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