An opinionated code formatter for PHP. Now with indentation options!

Installs: 943

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 154

Type:project

v1.22.0 2025-04-20 23:05 UTC

This package is auto-updated.

Last update: 2025-05-20 23:18:22 UTC


README

Logo Laravel Pint

Overview Laravel Pint

Build Status Total Downloads Latest Stable Version License

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 (two spaces)
  • If you use 4 spaces, set the value to (four spaces)

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.