zenphp / pinte
An less opinionated version of Laravel Pint.
Requires
- php: ^8.1.0
- ext-json: *
- ext-mbstring: *
- ext-tokenizer: *
- ext-xml: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.49.0
- illuminate/view: ^10.43.0
- larastan/larastan: ^2.8.1
- laravel-zero/framework: ^10.3.0
- mockery/mockery: ^1.6.7
- nunomaduro/termwind: ^1.15.1
- pestphp/pest: ^2.33.6
README
<img src="https://img.shields.io/packagist/dt/zenphp/pinte" alt="Total Downloads">
<img src="https://img.shields.io/packagist/v/zenphp/pinte" alt="Latest Stable Version">
<img src="https://img.shields.io/packagist/l/zenphp/pinte" alt="License">
Introduction
Pinte is an less opinionated PHP code style fixer for minimalists. Pinte is built on top of PHP-CS-Fixer and makes it simple to ensure that your code style stays clean and consistent.
Pinte is almost completely based on Laravel Pint with the added configuration (to start) of indentation and line endings which are a much requested feature.
If there are other configuration additions you'd like added please feel free to open an issue or a pull request.
Official Documentation
Installation
$ composer require zenphp/pinte --dev
Usage
Use the same commands as Pint:
$ php ./vendor/bin/pinte
or
$ php ./vendor/bin/pinte --dirty
To change the indentation, add the indent option to pinte.json
:
{
"indent": "\t"
}
Default for intentation is 4 spaces.
To change the line ending option:
{
"lineEnding": "\r\n"
}
Default line ending is a single newline.
Further documentation for Pinte is forthcoming.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
Pinte is open-sourced software licensed under the MIT license.