mediatis / coding-standards
Mediatis - Coding Standards
Requires
- php: ^8.2
- composer/semver: ^3.4
- ergebnis/composer-normalize: ^2.28
- friendsofphp/php-cs-fixer: ^3.27
- phpstan/extension-installer: ^1.3.1
- phpstan/phpstan: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^9.6 || ^10.1 || ^11.0
- rector/rector: ^2.0.0
- symfony/yaml: ^5.3.6 || ^6.2.0 || ^7.1.4
This package is auto-updated.
Last update: 2026-07-03 11:29:29 UTC
README
Warning
This package is deprecated and no longer maintained. Existing consumers keep working, but no further development is planned. New packages should not be scaffolded by it.
Installation
Make sure that you removed old code quality and pipeline configuration files or folders, e.g. rector.php, .php-cs-fixer.php, .phpstan.
Make sure, your composer.json does not have any dev-requirements on explicit code-quality packages (like phpunit/phpunit, rector/rector and so on).
Make sure your .gitignore file includes the folder vendor and the file composer.lock.
vendor
composer.lock
Install the coding-standards package.
composer require --dev --with-all-dependencies mediatis/coding-standards
Run the kickstart script to install configuration files.
./vendor/bin/mediatis-coding-standards-setup
The files that are usually merged (mostly CI configuration) can be reset and overwritten with the argument reset. The composer.json is an exception; it is always merged.
./vendor/bin/mediatis-coding-standards-setup reset
Usage - Check
Run all checks:
composer ci
Run group checks:
# all php tests and code quality checks
composer ci:php
# all php tests
composer ci:php:tests
# all php code quality checks
composer ci:php:static
# all composer-related checks
composer ci:composer
Run specific checks:
composer ci:composer:normalize
composer ci:composer:psr-verify
composer ci:composer:validate
composer ci:php:lint
composer ci:php:rector
composer ci:php:cs-fixer
composer ci:php:stan
composer ci:php:tests:unit
composer ci:php:tests:integration
Usage - Fix
Run all fixes:
composer fix
Run group fixes:
composer fix:php
composer fix:composer
Run specific fixes:
composer fix:php:rector
composer fix:php:cs
composer fix:composer:normalize