Installing via Composer (Legacy Key Method)
This is the legacy way to connect to our Composer repository. Check out the new authentication method.
All of our premium plugins and addons can be installed using Composer, similar to how our free plugins can be installed using WordPress Packagist.
Generate API Key
Visit My Account and navigate to the Settings tab to generate a Composer API key. API keys are license independent and will grant access to all plugins that you have an active subscription.
Add Our Repository
Add our repository to your composer.json
file, remembering to substitute your Composer API key:
"repositories": [
{
"type":"composer",
"url":"https://composer.deliciousbrains.com/{COMPOSER_API_KEY}"
}
]
Add Desired Plugins
From the CLI, require your desired plugins.
WP Migrate DB Pro
$ composer require deliciousbrains-plugin/wp-migrate-db-pro
Media Files
$ composer require deliciousbrains-plugin/wp-migrate-db-pro-media-files
CLI
$ composer require deliciousbrains-plugin/wp-migrate-db-pro-cli
Multisite Tools
$ composer require deliciousbrains-plugin/wp-migrate-db-pro-multisite-tools
Version Constraints
You can use any Composer version constraints, or specify the exact version of a plugin or addon:
"require": {
"deliciousbrains-plugin/wp-migrate-db-pro": "1.8.1"
}
Customizing Install Locations
We use composer/installers
to automatically install our packages to wp-content/plugins/
. However, you can customize the install location by adding the following to your composer.json
file:
"extra": {
"installer-paths": {
"public_html/wp-content/plugins/{$name}/": ["type:wordpress-plugin"]
}
}
Example composer.json
{
"name": "deliciousbrains/composer-test.dev",
"description": "WP Migrate DB Pro for WordPress site",
"repositories": [
{
"type":"composer",
"url":"https://composer.deliciousbrains.com/{COMPOSER_API_KEY}"
}
],
"require": {
"deliciousbrains-plugin/wp-migrate-db-pro": "^1.8",
"deliciousbrains-plugin/wp-migrate-db-pro-cli": "^1.3"
}
}