igniteonline/wpm-pro-installer

An install helper for WP Migrate DB Pro and WP Migrate DB Pro Media Files

Installs: 5 970

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 70

Type:composer-plugin

1.0.4 2016-05-11 23:05 UTC

This package is not auto-updated.

Last update: 2024-05-25 17:06:45 UTC


README

Packagist Packagist Travis Coveralls

A composer plugin that makes installing WPM PRO with composer easier.

It reads your 🔑 WPM PRO key from the environment or a .env file.

Usage

1. Add the package repository to the [repositories][composer-repositories] field in composer.json (based on this [gist][package-gist]):

{
      "type": "package",
      "package": {
        "name": "deliciousbrains/wp-migrate-db-pro",
        "type": "wordpress-plugin",
        "version": "1.4.6",
        "dist": {
          "type": "zip",
          "url": "https://deliciousbrains.com/dl/wp-migrate-db-pro-latest.zip?"
        },
        "require": {
          "igniteonline/wpm-pro-installer": "^1.0.2",
          "composer/installers": "^1.0"
        }
      }
    },
    {
      "type": "package",
      "package": {
        "name": "deliciousbrains/wp-migrate-db-pro-media-files",
        "type": "wordpress-plugin",
        "version": "1.3.1",
        "dist": {
          "type": "zip",
          "url": "https://deliciousbrains.com/dl/wp-migrate-db-pro-media-files-latest.zip?"
        },
        "require": {
          "igniteonline/wpm-pro-installer": "^1.0.2",
          "composer/installers": "^1.0"
        }
      }
    }

Replace "version": "*.*.*" with your desired version.

2. Make your WPM PRO key available

Set the environment variable WPM_PRO_KEY to your [WPM PRO key][wpm-account].

Alternatively you can add an entry to your .env file:

# .env (same directory as composer.json)
WPM_PRO_KEY=Your-Key-Here

3. Require WPM PRO

composer require deliciousbrains/wp-migrate-db-pro:*

Unfortunately, DeliciousBrains is not exposing a way of retrieving different versions of their plugin. Because of this, changing the version in the package section will download the latest version regardless. You have to manually change the version in your composer.json file to manually trigger composer to download a new package. [composer-repositories]: https://getcomposer.org/doc/04-schema.md#repositories [composer-versions]: https://getcomposer.org/doc/articles/versions.md [package-gist]: https://gist.github.com/dmalatesta/4fae4490caef712a51bf [wpm-account]: https://deliciousbrains.com/signin/