Skip to content

igniteB0T/wpm-pro-installer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP Migrate DB PRO Installer

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/

About

A composer install helper for WP Migrate DB PRO

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%