Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer advantages [closed]

In our company we currently do not use composer, we just download and store all libs under git.

What arguments can be given to our customers and system administrators to convince them of the need to use composer?

Our request must be substantiated enough to make a decision.

like image 218
Eddie Avatar asked Jul 15 '26 03:07

Eddie


1 Answers

With Composer you get the following advantages:

  1. The dependencies required by the package you are pulling in are automatically taken care by Composer itself, leaving you free to focus on the programming instead of dependency management.
  2. When the package you are using gets a new version, a simple composer update will do everything for you without ever needing to do any file management manually.
  3. With Composer you get a centralized autoload.php file which also be optimized for production. It loads everything you need and all you need to do is include one file. The optimized version is super fast! Simply do composer dump-autoload -o.
  4. You can use psr-4 namespaces to load a specific path on your application and have it be included in the autoloader file. Then you can simply use the namespace and it's available application wide!

Look at the following URL for a more detailed list of features: https://getcomposer.org/doc/01-basic-usage.md


There are a lot more things you can do with Composer and it's wonderful. I highly advise that you guys use it and stop wasting time on managing packages yourself.

like image 104
aborted Avatar answered Jul 17 '26 17:07

aborted



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!