jetstreamlabs / pinte
A less opinionated code formatter for PHP, based on Laravel Pint.
Installs: 894
Dependents: 7
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 0
Open Issues: 3
Type:project
Requires
- php: ^8.1
- ext-json: *
- ext-mbstring: *
- ext-tokenizer: *
- ext-xml: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.14
- illuminate/view: ^9.50
- laravel-zero/framework: ^9.2
- mockery/mockery: ^1.5
- nunomaduro/larastan: ^2.4
- nunomaduro/termwind: ^1.15
- pestphp/pest: ^1.22
This package is auto-updated.
Last update: 2023-03-18 19:57:14 UTC
README
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 jetstreamlabs/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.