Skip to content
TilloTech Docs

Backend Linting and Formatting

This project uses Laravel Pint for PHP code style.

After installing dependencies, run Pint manually with:

shell
./vendor/bin/pint

VS Code

  1. Install the Laravel Pint extension (see .vscode/extensions.json recommendations).
  2. Pint is configured as the default formatter for PHP files in .vscode/settings.json, so formatting on save uses Pint automatically.

PhpStorm

  1. Ensure Pint is installed via Composer: docker compose exec -T core.web composer install.
  2. Configure Pint under Settings > PHP > Quality Tools > Laravel Pint, pointing to vendor/bin/pint and (optionally) pint.json.
  3. Enable the Laravel Pint inspection (Settings > Editor > Inspections > PHP > Quality Tools) and set Pint as an external formatter so Code > Reformat Code runs Pint.
  4. Optionally add a File Watcher for Pint (Tools > File Watchers) that runs vendor/bin/pint $FilePath$ for PHP files.