pararius / cs
Code style configurations
1.0.0
2023-08-16 08:35 UTC
Requires
- php: ^8.0
- friendsofphp/php-cs-fixer: ^3.0
This package is not auto-updated.
Last update: 2024-12-18 15:06:26 UTC
README
This repository contains configurations to set up and maintain code style across Pararius repositories.
Installation & usage
Add it to your dev requirements. This will install php-cs-fixer as well.
composer require --dev pararius/cs
Now create/update your cs-fixer configuration file like this:
# .php-cs-fixer.dist.php $config = require __DIR__ . '/vendor/pararius/cs/php-cs-fixer.ta.php'; $config->getFinder()->in([ __DIR__ . '/src', __DIR__ . '/tests', ]); return $config;