Composer EDD Plugin enable installing and managing WordPress pro offerings powered by EasyDigitalDownloads and software licensing add-on via composer. Works with any plugin or theme delivered via EasyDigitalDownloads and software licensing for distribution.
Install the composer plugin to enable composer package via EDD Software licencing.
composer require lubusin/composer-edd-plugin
Add the desired WordPress premium offering(s) as package to the repositories field in composer.json. Find more about composer repositories in the composer documentation
{
"type": "package",
"package": {
"name": "namespace/edd-product-name",
"version": "version-number",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.productwebsite.com"
},
"extra": {
"edd_installer": true,
"item_name": "Product Name",
"license": "PRODUCT_LICENSE",
"url": "PRODUCT_ACTIVATION_URL"
}
}
}
Above package details hold important info to connect and download zip from product store:
Important
-
name
this can be customized as per your need, it's the package name used forcomposer require namespace/edd-product-name
later -
version
used to get the zip, check account for version number -
type
use wordpress-plugin or wordpress-theme, -
url
product website url (include https) -
edd_installer
enable package via edd powered store -
item_name
name of product, can be found under account info -
license
name of env variable to get the license key (do not add your actual key here) -
url
name of env variable to get the website url associated with the license. (do not add your actual website url here)
Note:
- Add multiple package enteris to add more then one product
- Most EDD products only allow getting the latest versions of their product, even if you specifically ask for a version.
- Make sure license is already activated for the url.
Create .env
and add the varaible names mentioned in the above step. Find more about .env here
PRODUCT_LICENSE=product-license-key
PRODUCT_ACTIVATION_URL=product-activation-url
Create the auth.json
and Add the store access credentials. Find more about http-basic-authentication in the composer documentation
{
"http-basic": {
"www.productwebsite.com": {
"username": "your-username",
"password": "your-password"
}
}
}
Important
www.productwebsite.com
product website host nameusername
login username for product websitepassword
login password for product website
Note
To add credentials for more than one product stores add multiple credentials under http-basic
Install the plugin
composer require namespace/edd-product-name
[Composer\Downloader\TransportException]
Your configuration does not allow connections to http://www.productwebsite.com See https://getcomposer.org/doc/06-config.md#sec
ure-http for details.
you will get above error if edd store deliver file over http
instead of https
. To fix this config composer to allow non secure url by setting secure-http
to false. Find more about secure-http in the composer documentation
Note
- Use the name set in step 1
- To install multiple products add them seperating with space.
Please see the Changelog
If you have any suggestions/feature request that you would like to see in the upcoming releases, feel free to let us know in the issues section
Thank you in advance if you wish to contribute to the Composer EDD Plugin
. You can read the contribution guidelines here
Check the development tasklist here, if something interests you or want to suggest something click here
If you discover any security related issues, please email to info@lubus.in instead of using the issue tracker.
- Inspiration polylang/polylang#3
- Motivation @szepeviktor | polylang/polylang#3 (comment)
- Beta testing @nirbhay & @ideabox
- Logo icon credits prosymbols
- Code inspiration
LUBUS is a web design agency based in Mumbai, India.
You can pledge on patreon to support the development & maintenance of various opensource stuffs we are building.
Composer EDD Plugin is open-sourced software licensed under the MIT license