Appearance
Code style & linting
Code should follow Spatie's style guides:
These guidelines are not reproduced here – read them at the source. When the guide is silent, follow the conventions already established in the project.
Linting
For applicable projects, these linters are enforced in CI and must pass before merging. Run them locally before pushing:
| Tool | What it checks | Command |
|---|---|---|
| PHPStan | PHP static analysis (level 8, 6 for legacy projects) | composer analyse |
| Pint | PHP code style, Blade templates | composer format |
| Prettier | CSS, JS, TS, Vue | yarn format |