I do not understand why someone need composer?

autoloader, composer-php, php

Solution

Composer allows you to very easily install a multitude of software for your project without dealing with the details.

It allows the authors to use another library themselves without you having to deal with all the details.

For example, if you would want to manually install a library that requires to install two additional libraries in the correct version, with these libraries requiring one additional library each, and additionally you'd have to initialize the autoloading of all five libraries, this might be some task to tackle.

With Composer, you only require one library, and after that everything is done for you.

Additionally, it makes updating way easier for you. If your library has a bug that got fixed in a newer version, you simply update and see if your application still runs. You'd spend most of the time checking everything still runs - and barely any time updating. That's productive.

Yes, you can do it manually. But why? But I can understand that you can't see the advantage if you don't update software extensively or don't use plenty of libraries.

Problem

I think there is no need to include composer for loading any library etc. Loading some libraries is not hard task. Its easy to include... Download library > extract > put into your project > use it This task is only one time per project. I mean its not over and over again. Updating is not huge task too... just download and replace with old files in your project. this is just 30 seconds for each library. I do not see any reason to include one more layer (composer) to my project. Plus if we add this layer (composer) to our project, it brings its own problems. Check this to see how many people dealing with composer errors; https://stackoverflow.com/search?q=composer+error I think I overlook something here. Because almost everybody use composer and recommend. Could you tell me what I do overlook about composer? What are the benefits of it?

Original source