Composer itself downloads and installs the necessary libraries, and then places them in the project.
Download or get commands for Composer – https://getcomposer.org/download/
We recommend using PSR 4-Autoloader to automatically autoload class files. For this in the composer.json file we will add the following settings:
{ "autoload":{ "psr-4": { "App\\": "app/" } } }
Then through the console called in the folder with files composer.phar call the following commands:
$ php composer.phar ^C $ composer dump-autoload -o
Then you need to attach (require once) the autoload.php file to our index.php file