gomzyakov/pint-config

Code-style configuration for Laravel Pint

v1.2.0 2025-01-23 06:59 UTC

This package is auto-updated.

Last update: 2025-02-23 07:05:36 UTC


README

packagist downloads_count license

This package provides a Laravel Pint configuration for PHP projects which follow the PSR-12 coding style and coding style commonly seen in the official PHP documentation.

Installation

Install the package using Composer:

composer require --dev laravel/pint gomzyakov/pint-config

Usage

Either run Pint directly with the configuration file:

./vendor/bin/pint --config vendor/gomzyakov/pint-config/pint.json

Or add a format script to your composer.json file to run Pint with the configuration file:

composer config scripts.format 'pint --config vendor/gomzyakov/pint-config/pint.json' --file composer.json

And run the script:

composer format

Support

If you find any package errors, please, make an issue in current repository.

License

This is open-sourced software licensed under the MIT License.