Composer - What is it and what is it for?

6

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?

    
asked by anonymous 04.03.2016 / 01:49

1 answer

6

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.

    
04.03.2016 / 03:59