nickwelsh / pint
An opinionated code formatter for PHP. Now with indentation options!
Requires
- php: ^8.2.0
- ext-json: *
- ext-mbstring: *
- ext-tokenizer: *
- ext-xml: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.75.0
- illuminate/view: ^11.44.2
- larastan/larastan: ^3.3.1
- laravel-zero/framework: ^11.36.1
- mockery/mockery: ^1.6.12
- nunomaduro/termwind: ^2.3
- pestphp/pest: ^2.36.0
README
Introduction
Laravel Pint is an opinionated PHP code style fixer for minimalists. Pint is built on top of PHP-CS-Fixer and makes it simple to ensure that your code style stays clean and consistent.
This fork specifically allows you to configure the indentation used by Pint.
Configuration
Specify a indent
option in your pint.json
file.
- If you use tabs, set the value to
\t
- If you use 2 spaces, set the value to
- If you use 4 spaces, set the value to
Example:
{ "preset": "laravel", "indent": "\t" }
Official Documentation
Documentation for Pint can be found on the Laravel website.
Contributing
Thank you for considering contributing to Pint! You can read the contribution guide here.
Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
Pint is open-sourced software licensed under the MIT license.