How to Organize Composer Scripts Effectively
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...
dcblog.dev2 min read
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.