PHPackages                             lmc/coding-standard - 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. lmc/coding-standard

Abandoned → [almacareer/coding-standard](/?search=almacareer%2Fcoding-standard)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

lmc/coding-standard
===================

Coding standard used in Alma Career Czechia (LMC) projects

4.1.2(1y ago)0224.9k—6.5%20MITPHPPHP ^8.0

Since Apr 3Pushed 1y agoCompare

[ Source](https://github.com/lmc-eu/php-coding-standard-archive)[ Packagist](https://packagist.org/packages/lmc/coding-standard)[ RSS](/packages/lmc-coding-standard/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (11)Versions (29)Used By (20)

Alma Career Czechia (formerly LMC) Coding Standard for PHP
==========================================================

[](#alma-career-czechia-formerly-lmc-coding-standard-for-php)

Caution

This repository is deprecated. See [Alma Career Coding Standard for PHP](https://github.com/alma-oss/php-coding-standard)repository and [almacareer/coding-standard](https://packagist.org/packages/almacareer/coding-standard) package for replacement.

[![Latest Stable Version](https://camo.githubusercontent.com/58f2a4d8bf2a5b23f4199417efde4050b224013ed11d78e79bd08f0673f0097a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6d632f636f64696e672d7374616e646172642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lmc/coding-standard)

PHP coding standard used in [Alma Career Czechia](https://www.almacareer.com/) (formerly LMC) products.

The standard is based on [PSR-12](https://www.php-fig.org/psr/psr-12/) and partially [PER 2.0](https://www.php-fig.org/per/coding-style/) and adds various checks to make sure the code is readable, follows the same conventions, and does not contain common mistakes.

We use [EasyCodingStandard](https://github.com/easy-coding-standard/easy-coding-standard) to define and execute checks created for both [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) and [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer).

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

[](#installation)

```
composer require --dev lmc/coding-standard
```

Usage
-----

[](#usage)

1. Create `ecs.php` file in the root directory of your project and import the code-style rules:

```
