PHP & Composer, how do I combine composer.json files

房东的猫 提交于 2019-12-04 13:09:44

Simply add this into the require block of your original composer file:

"googleplus/quickstart": "*",

I have little experience with Composer, but I can tell you that when you require a lib, you add that lib to your main composer.json file. Upon installation or update, the new lib will be downloaded and its composer.json file will be read by Composer; its dependencies will be automatically downloaded, and so on.

So we could say you're not supposed to download your requirements manually, you have to use Composer for that, it will take care of it for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!