Search posts, tags, users, and pages
David Carr
Web developer
What is a composer script? A composer script is a set of custom commands defined in a composer.json file. It lets you automate tasks like running tests, performing analysis, or managing dependencies in a PHP project. This allows you to create a short...
Erik D'Ercole
For my Composer scripts, I prefer to use "agnostic" names: format, test, analyse, etc. Currently, they run Pint, Pest, PHPStan, but in the future each command could run another tool. This way, I don't need to change the command name.
that's a good strategy
Erik D'Ercole
For my Composer scripts, I prefer to use "agnostic" names: format, test, analyse, etc. Currently, they run Pint, Pest, PHPStan, but in the future each command could run another tool. This way, I don't need to change the command name.