pint
- lint to PSR2 by default, able to lint with PSR12composer require --dev laravel/peck
peck
- fix typoscomposer require --dev peckphp/peck
phpstan
- type checkingcomposer require --dev phpstan/phpstan
rector
- ..composer require --dev rector/rector
## Makefile:
PATH:="./vendor/bin:$(PATH)"
SHELL:=env PATH=$(PATH) /bin/bash
check:
@pint ; rector . ; phpstan analyze *.php;
peck not working donno w
project-root/
├── public/
│ ├── index.php # Entry point
│ └── assets/ # CSS, JS, images
├── src/ # Core application code
│ ├── Controller/
│ ├── Model/
│ ├── Service/ # Business logic and utility functions
│ └── polyfill.php # compatibility to lower versions of php
├── config/
│ ├── app.php
│ └── database.php
├── tests/
│ └── Unit/
└── vendor/ # Composer dependencies
Note: On small projects there maybe all in one single root directory, but better to organize with subdirectories
build, vendor, public - usually used on different types of projects