Laravel Pint configuration used at portavice
portavice/laravel-pint-config is a Laravel package for laravel pint configuration used at portavice.
It currently has 0 GitHub stars and 24.943 downloads on Packagist (latest version v3.0.0).
Install it with composer require portavice/laravel-pint-config.
Discover more Laravel packages by portavice
or browse all Laravel packages to compare alternatives.
Last updated
This project contains the default configuration for Laravel Pint used at portavice GmbH.
The ruleset is based on PSR12 with additional rules for
issets or unsets,else, return, sprintf, empty statements).First, install the package via Composer:
composer require portavice/laravel-pint-config --dev
Note that this automatically installs Laravel Pint as well.
To simplify usage, you may configure the following scripts in your composer.json:
{
"scripts": {
"csPHP": "pint --config vendor/portavice/laravel-pint-config/pint.json --test",
"csfixPHP": "pint --config vendor/portavice/laravel-pint-config/pint.json"
}
}
Just run composer csPHP to check and composer csfixPHP to fix the PHP files in your Laravel project.
Otherwise, you will have to call the pint command with the --config option.
To use and adjust the set of rules defined by this package,
you can also copy the pint.json from this repository into your project.