PHPackages                             2latlantik/symfony-my-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. 2latlantik/symfony-my-cs

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

2latlantik/symfony-my-cs
========================

My coding standard for Symfony project

0135Shell

Since Apr 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/2latlantik/symfony-my-cs)[ Packagist](https://packagist.org/packages/2latlantik/symfony-my-cs)[ RSS](/packages/2latlantik-symfony-my-cs/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Symfony-My-Cs
=============

[](#symfony-my-cs)

The goal of this library is to gather a set of process to maintain a good code quality of my **symfony** projects. Failure to respect some good practices will block the consideration of commit git

I combine the use of different libraries to approve git commit which are:

- PHP-Lint (A tool to analyze PHP code and to return usage errors)
- PHP-CS (A tool to control compliance with PSR2 standards here)
- PHP-CS-FIXER (A tool to control the respect of several coding conventions)

It is also possible to use PHP Mess Detector to further refine the detection of a moderately explicit and error-prone code

Requirements
============

[](#requirements)

- Usage on Symfony4 project
- Usage with a versioned project with Git

Installation and Usage
======================

[](#installation-and-usage)

I - Install the process of this library
---------------------------------------

[](#i---install-the-process-of-this-library)

To be able to install the different code verification processes you have to put these lines in the composer.json file.

```
"scripts" : {
    "my-cs-install": [
        "SymfonyMyCs\\Git\\Hooks\\PostInstall::installHooks"
    ]
}

```

Then you can run the installaton script via the command

```
composer run-script my-cs-install

```

II - Installation of the Symfony Code Quality executable
--------------------------------------------------------

[](#ii---installation-of-the-symfony-code-quality-executable)

Symfony created his own code parser and named it [http://cs.sensiolabs.org/](php-cs-fixer) .

You must install it to allow your commit to be validated.

III - Main moment of library actions
------------------------------------

[](#iii---main-moment-of-library-actions)

> At the time of a commit git

PHP Lint and PHPCS check for errors and possibly block commit. At the end php-cs-fix fixes the problems still present. A validated commit is therefore composed of PHP code respecting a set of standards recognized by all.

> Execution of PHPMD to further improve the quality of the code

```
./vendor/bin/phpmd src/Controller/ [format] phpmd

```

where format : xml|text|html

License
=======

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/13a526d23dce287c89f1f2ec12e78e5148e0cfadd96efdd2245c32a2efd1d71a?d=identicon)[2latlantik](/maintainers/2latlantik)

---

Top Contributors

[![2latlantik](https://avatars.githubusercontent.com/u/6146435?v=4)](https://github.com/2latlantik "2latlantik (15 commits)")

### Embed Badge

![Health badge](/badges/2latlantik-symfony-my-cs/health.svg)

```
[![Health](https://phpackages.com/badges/2latlantik-symfony-my-cs/health.svg)](https://phpackages.com/packages/2latlantik-symfony-my-cs)
```

###  Alternatives

[phpdocumentor/type-resolver

A PSR-5 based resolver of Class names, Types and Structural Element Names

9.2k719.5M166](/packages/phpdocumentor-type-resolver)[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k130.5M1.4k](/packages/pimple-pimple)[league/container

A fast and intuitive dependency injection container.

86387.8M343](/packages/league-container)[stella-maris/clock

A pre-release of the proposed PSR-20 Clock-Interface

7947.5M2](/packages/stella-maris-clock)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

217736.5k29](/packages/wptrt-wpthemereview)[inpsyde/modularity

Modular PSR-11 implementation for WordPress plugins, themes or libraries.

54383.3k3](/packages/inpsyde-modularity)

PHPackages © 2026

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