PHPackages                             mementohub/coding-standards - 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. mementohub/coding-standards

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

mementohub/coding-standards
===========================

Coding Standards used within the Memento Hub team.

0.0.3(4y ago)013MITPHP

Since Jan 18Pushed 4y ago2 watchersCompare

[ Source](https://github.com/mementohub/coding-standards)[ Packagist](https://packagist.org/packages/mementohub/coding-standards)[ RSS](/packages/mementohub-coding-standards/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

Coding Standards used by Memento Hub
====================================

[](#coding-standards-used-by-memento-hub)

The development of this package has been greatly inspired by this [Laravel News article](https://laravel-news.com/sharing-php-cs-fixer-rules-across-projects-and-teams)

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

[](#installation)

```
# install package
composer require --dev mementohub/coding-standards

# set php-cs-fixer config file if not present
cp -n vendor/mementohub/coding-standards/stubs/.php-cs-fixer.dist.php .php-cs-fixer.dist.php

# set git pre-commit hook if not present
cp -n vendor/mementohub/coding-standards/stubs/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit

# add .php-cs-fixer.cache file to .gitignore if not already present
grep -qxF '/.php-cs-fixer.cache' .gitignore || echo '/.php-cs-fixer.cache' >> .gitignore

# run a global fix on your project and commit the changes
# it has to run twice for some rules to take effect
vendor/bin/php-cs-fixer fix --using-cache=no
vendor/bin/php-cs-fixer fix --using-cache=no
git add . && git commit -m "Fixed code styling"
```

VS Code configuration
---------------------

[](#vs-code-configuration)

Install the `calebporzio.simple-php-cs-fixer` extension.

Add the following entries to your settings file:

```
{
    "simple-php-cs-fixer.useConfig": true,
    "simple-php-cs-fixer.config": ".php-cs-fixer.dist.php",
    "simple-php-cs-fixer.save": true,
    "simple-php-cs-fixer.usingCache": false
}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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

Total

3

Last Release

1625d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mementohub-coding-standards/health.svg)

```
[![Health](https://phpackages.com/badges/mementohub-coding-standards/health.svg)](https://phpackages.com/packages/mementohub-coding-standards)
```

###  Alternatives

[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20280.7k20](/packages/shopsys-coding-standards)

PHPackages © 2026

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