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

0138Shell

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 2w ago

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

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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://avatars.githubusercontent.com/u/6146435?v=4)[Coudenne Nicolas](/maintainers/2latlantik)[@2latlantik](https://github.com/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

[aura/di

A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.

352982.2k60](/packages/aura-di)[maclof/kubernetes-client

A simple yet elegant client for accessing and controlling a Kubernetes cluster.

234907.8k4](/packages/maclof-kubernetes-client)[icamys/php-sitemap-generator

Simple PHP sitemap generator.

175356.9k7](/packages/icamys-php-sitemap-generator)

PHPackages © 2026

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