Installing packages
If we have dependencies (other packages on which our work depends or is going to depend) in a JSON file named composer.json, then we can install them through Composer.
There are a lot of good packages in PHP and most of the stuff related to our daily work is available, so who would want to reinvent the wheel and create everything again? So, to start a project, we can simply install different packages through Composer and reuse a lot of code that is already there.
Now, the question is, what is the source from where Composer can be installed? Can it be anything anywhere on the internet? Or are there some fixed places from where Composer installs packages? Actually, there can be multiple sources. The one default place from ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access