yeswedev-team / gravityforms-composer-installer
A composer install helper for Gravity Forms
Installs: 2 504
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 6
Type:composer-plugin
Requires
- php: ^7.1 || ^8.0
- composer-plugin-api: ^1.0 || ^2.0
- ffraenz/private-composer-installer: ^5.0
Requires (Dev)
- composer/composer: ^1.0 || ^2.0
- phpunit/phpunit: ^8.0
- zendframework/zend-coding-standard: ^1.0
README
Heavily inspired by private-composer-installer.
Examples
Gravity Forms
Add the desired private package to the repositories
field inside composer.json
. In this example the entire dist URL of the package will be replaced by an environment variable. Find more about composer repositories in the composer docs.
{ "type": "package", "package": { "name": "gravityforms/gravityforms", "version": "2.4.21.3", "type": "wordpress-plugin", "dist": { "type": "zip", "url": "https://gravityapi.com/wp-content/plugins/gravitymanager/api.php?op=get_plugin&slug=gravityforms&key={%WP_PLUGIN_GF_KEY}" }, "require": { "composer/installers": "^1.4", "yeswedev-team/gravityforms-composer-installer": "^2.3" } } },
Provide your licence key variable WP_PLUGIN_GF_KEY
inside the .env
file.
WP_PLUGIN_GF_KEY=abcdef
Let composer require the private package.
composer require gravityforms/gravityforms:*