PHPackages                             jakubciszak/mg-codestandards - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jakubciszak/mg-codestandards

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jakubciszak/mg-codestandards
============================

Code styles for Magento

2.1.0(4y ago)0261[1 PRs](https://github.com/jakubciszak/mg-codestandards/pulls)PHPPHP &gt;=5.4.0

Since Mar 8Pushed 4y agoCompare

[ Source](https://github.com/jakubciszak/mg-codestandards)[ Packagist](https://packagist.org/packages/jakubciszak/mg-codestandards)[ RSS](/packages/jakubciszak-mg-codestandards/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (13)Used By (0)

Code Sniffer Rules for Magento 1
================================

[](#code-sniffer-rules-for-magento-1)

This rule based on [Magento Extension Quality Program Coding Standard](https://github.com/magento/marketplace-eqp)

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

[](#installation)

Composer create:

```
$ composer create-project jakubciszak/mg-codestandards
```

The scripts to set `installed_paths` should be running and write the info:

```
Config value "installed_paths" added successfully

```

Basic usage
-----------

[](#basic-usage)

Select a standard to run with CodeSniffer:

Run CodeSniffer: Go to project directory:

```
$ cd mg-codestandards
$ vendor/bin/phpcs  --standard=MG1

```

---

Setting up PHPSTORM
-------------------

[](#setting-up-phpstorm)

```
File | Settings | Languages & Frameworks | PHP | Quality Tools

```

`Code sniffer` -&gt; `...` near `Configuration`. Set "PHP Code Sniffer Path" to: `//mg-codestandards/vendor/bin/phpcs`

Next go to `File | Settings | Editor | Inspections`Find `PHP Code Sniffer Validation` and select `Condig Standard` to `MG1`

---

Company standards
-----------------

[](#company-standards)

You can create your own company standards based on `mg-codestandards`. To do this, create a `special_paths.cfg` file in project root directory, and add line with absolute path to your standards directory. Eg. `/home/user/rules`. Next, run the `bin/setup` script.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~220 days

Total

10

Last Release

1569d ago

Major Versions

1.1.2 → 2.0.02019-10-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/235452bbfa7fbe11c5572ac2bd34bca151d3597d81cdb8740c94e74b6b9c7d68?d=identicon)[itdomino](/maintainers/itdomino)

---

Top Contributors

[![jakubciszak](https://avatars.githubusercontent.com/u/30110635?v=4)](https://github.com/jakubciszak "jakubciszak (22 commits)")

### Embed Badge

![Health badge](/badges/jakubciszak-mg-codestandards/health.svg)

```
[![Health](https://phpackages.com/badges/jakubciszak-mg-codestandards/health.svg)](https://phpackages.com/packages/jakubciszak-mg-codestandards)
```

###  Alternatives

[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k13](/packages/shopsys-coding-standards)[flyeralarm/php-code-validator

A custom coding standard for FLYERALARM

2226.9k6](/packages/flyeralarm-php-code-validator)

PHPackages © 2026

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