Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gtap-dev/gravityforms-composer-installer
Gravity Forms installer helper for Composer
https://github.com/gtap-dev/gravityforms-composer-installer
Last synced: 3 months ago
JSON representation
Gravity Forms installer helper for Composer
- Host: GitHub
- URL: https://github.com/gtap-dev/gravityforms-composer-installer
- Owner: gtap-dev
- License: mit
- Created: 2019-03-25T17:51:15.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-09-29T20:44:44.000Z (over 1 year ago)
- Last Synced: 2024-09-30T08:03:59.875Z (3 months ago)
- Language: PHP
- Size: 97.7 KB
- Stars: 30
- Watchers: 5
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gravityforms-composer-installer
Heavily inspired by [private-composer-installer](https://github.com/ffraenz/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](https://getcomposer.org/doc/05-repositories.md#repositories).
```json
{
"type": "package",
"package": {
"name": "gravityforms/gravityforms",
"version": "2.4.21.3",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.gravityhelp.com/wp-content/plugins/gravitymanager/api.php?op=get_plugin&slug=gravityforms&key={%WP_PLUGIN_GF_KEY}"
},
"require": {
"composer/installers": "^1.4",
"gotoandplay/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.
```bash
composer require gravityforms/gravityforms:*
```