zenphp/pinte

An less opinionated version of Laravel Pint.

Installs: 41

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:project

v1.2.0 2024-03-07 11:12 UTC

This package is auto-updated.

Last update: 2024-04-07 11:42:50 UTC


README

Logo Pinte

pipeline status

<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.