Skip to content
Gravity Forms installer helper for Composer
Branch: master
Clone or download
Latest commit 0c4d132 May 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/GravityFormsComposerInstaller only fetch gravity forms api result if url includes gravityhelp.com Mar 26, 2019
.gitignore initial commit Mar 25, 2019
LICENSE.md initial commit Mar 25, 2019
README.md update readme May 17, 2019
composer.json initial commit Mar 25, 2019
composer.lock initial commit Mar 25, 2019
phpcs.xml initial commit Mar 25, 2019

README.md

gravityforms-composer-installer

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.6.15",
    "type": "wordpress-plugin",
    "dist": {
      "type": "zip",
      "url": "http://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": "^1.0"
    }
  }
},

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:*
You can’t perform that action at this time.