Answer the question
In order to leave comments, you need to log in
Why does Laravel run through Composer?
Many advanced CMS written in php, such as Wordpress, work and install without any composer. Why then use composer in Laravel and Yii2? What is its advantage, besides the convenient installation of packages and the creation of framework elements (models, controllers, etc. - such as "convenient framework manager"), and why couldn't it be used to create such MVC frameworks by simple class autoloading via spl_autoload_register? How is the logic of working through Composer arranged in the depths of the framework core here? Was Composer written specifically for these frameworks?
Answer the question
In order to leave comments, you need to log in
This is primarily necessary for code control. In any CMS without Composer, minimal changes to the code of any part will lead to the collapse of the entire system and no one will know what exactly has changed.
why it was impossible to use simple class autoloading via spl_autoload_register when creating such MVC frameworks
Many advanced CMS written in php, such as Wordpress, work and install without any composer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question