What You’ll Learn
Why composer.json scripts are better than a README with steps
The composer setup onboarding script
composer lint:fix , composer lint , composer test:types
composer dev — running everything in parallel
Auto-installing git hooks via post-autoload-dump
The Problem with README Instructions
Every project has a README that says something like:
Getting started: 1. cp .env.example .env 2. composer install 3. php artisan key:generate 4. php artisan migrate 5. php artisan db:seed 6. npm install && npm run build
Enter fullscreen mode
Exit fullscreen mode
Six steps, and that’s for a simple project. When a new developer joins, they inevitably miss a step, get an error, and spend 30 minutes debugging an environment that should have taken 5 minutes.…