Code style configurations

Maintainers

Details

github.com/Pararius/cs

Source

Installs: 37 359

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 8

Forks: 0

1.0.0 2023-08-16 08:35 UTC

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;