I have seen several times in projects the file composer.json
!
Would you like to know what it is and what it is used for?
I have seen several times in projects the file composer.json
!
Would you like to know what it is and what it is used for?
Composer is a dependency manager for PHP. It is for PHP as well as npm
is for NodeJS
, or Bower
is for development frontend, or pip
is for Python ...
When using Composer you can define the libraries your code needs, using the composer.json
file. By running the command composer install
, the tool will download all the dependencies for you. When your dependencies are updated, you can ask Composer to download the updates through composer update
.
You can browse through all available libraries on the Packagist site.