Heavily inspired by gravityforms-composer-installer and private-composer-installer.
- Require this composer plugin
composer require spenserhale/events-calendar-pro-composer-installer
- Update your
composer.json
by merging the example JSON
{
"repositories": [
{
"type": "package",
"package": {
"name": "modern-tribe/events-calendar-pro",
"version": "5.2.1.1",
"type": "wordpress-plugin",
"dist": {
"url": "https://pue.tri.be/api/plugins/v2/download?plugin=events-calendar-pro&version=5.2.1.1&key={%WP_EVENTS_CALENDAR_PRO_LICENSE}",
"type": "zip"
}
}
}
],
"require": {
"modern-tribe/events-calendar-pro": "5.2.1.1"
},
"extra": {
"installer-paths": {
"plugins/{$name}": [
"type:wordpress-plugin"
]
}
},
"minimum-stability": "dev"
}
- Provide your licence key variable
WP_EVENTS_CALENDAR_PRO_LICENSE
inside the.env
file.
WP_EVENTS_CALENDAR_PRO_LICENSE=my-secret-key
- Require the plugin
composer require modern-tribe/events-calendar-pro