I haven't any idea about how composer works and add directory in our folder structure.
Recently I want to add repository to my laravel installation so for that i have used https://github.com/prettus/l5-repository, this repo and as per its installation steps, the first step is to execute following command :
composer require prettus/l5-repository
this command creates prettus directory under vendor so how this works and manage all things?
My questions are:
what is the main purpose of composer?
what is best structure for that?
how it will handle depencdency?
what is the "autoload"
and 'psr-4` and use of both?
correct path and structure for namesapcing 'autoload' and 'psr-4'?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With