Introduces a helper to facilitate easier downloads from Easy Digital Downloads-based sites and refactors existing EDD-based plugins to use this helper.
Adds a PluginInterface class to enforce the getDownloadUrl function on all plugin implementations.
This PR accomplishes a few things:
auth.json
(with a fallback to.env
to preserve backward compatibility) through agetConfigValue
helper in a new Plugin base class. Theauth.json
file (which can be located in a project's root directory, globally in yourCOMPOSER_HOME
directory, or passed as aCOMPOSER_AUTH
env variable) should be formatted as such:getDownloadUrl
function on all plugin implementations.