Run composer install on your package folder, but don't forget to add the vendor folder to the .gitignore file.
Dec 5, 2015
10
Level 18
Install Package Dependencies
Hello all,
I've just started to develop a package I'm working on - it'll require some dependencies. I've specified these on my packages composer.json.
How can I install these so I can start using them with my package?
Thanks!
Level 18
I solved this by doing the following.
In my apps main, composer.json I added the following repository - which is the relative path to my pacakge itself.
Using my package's name, I added it to my required dependencies and ran a composer update - which then worked.
"repositories": [
{
"type": "path",
"url": "packages/Dawson/AmazonProducts"
}
],
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
...
"dawson/amazon-products": "dev-master"
},
Please or to participate in this conversation.
