Hi guys, I need to ask if i’m doing this right with Bedrock and Composer.
There are some plugins that I download as zip.
For example, a plugin called dynamic-featured-image
is not listed in wppackagist.org thus i need to download and link it manually.
So in composer.json, I add something like this:
...
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
},
{
"type": "package",
"package": {
"name": "myplugins/dynamic-featured-image",
"version": "3.5.2",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://dl.dropboxusercontent.com/u/xxxx/myplugins/dynamic-featured-image.3.5.2.zip"
}
}
},
But then below that, I am also adding something like this also in composer,json
...
"require": {
"php": ">=5.6",
"composer/installers": "~1.0.12",
"vlucas/phpdotenv": "^2.0.1",
"johnpbloch/wordpress": "4.7",
"oscarotero/env": "^1.0",
"roots/wp-password-bcrypt": "1.0.0",
"composer/installers": "~1.0.12",
"vlucas/phpdotenv": "^2.0.1",
"johnpbloch/wordpress": "4.6",
"oscarotero/env": "^1.0",
"roots/wp-password-bcrypt": "1.0.0",
"myplugins/dynamic-featured-image": "3.5.2",
},
Is this the correct way to install it effectively or it’s better to put the plugin in the plugins folder later after the installation?
I just think that it will be a hassle for updating the version numbers 2 times…
How to ignore version and tell Composer to just grab the zip from the url given?
Thanks for helping!