dwnload / edd-software-license-manager
A PHP class abstraction for managing WordPress plugin licenses and auto-updates that are sold on an Easy Digital Downloads store.
Installs: 1 168
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/dwnload/edd-software-license-manager
Requires
- php: ^8.3
- composer/installers: ~2.0
- dwnload/wp-settings-api: ^3.11
- thefrosty/wp-utilities: ^3.7
Requires (Dev)
- ext-simplexml: *
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- phpcompatibility/php-compatibility: ^9.3
- phpunit/php-code-coverage: ^9
- phpunit/phpunit: ^9
- roots/wordpress: ^6.7
- squizlabs/php_codesniffer: ^3.2
- symfony/var-dumper: ^6.4 || ^7.2
- wp-phpunit/wp-phpunit: ^6.7
- yoast/phpunit-polyfills: ^3.0 || ^4.0
README
A PHP class abstraction for managing WordPress plugin licenses and auto-updates that are sold on an Easy Digital Downloads store.
Package Installation (via Composer)
To install this package, edit your composer.json file:
{
"require": {
"dwnload/edd-software-license-manager": "^2.3"
}
}
Or run:
$ composer require dwnload/edd-software-license-manager
How to use this package
use Dwnload\EddSoftwareLicenseManager\Edd\License; $data = [ 'api_url' => 'https://frosty.media/', 'license' => License::getLicenseKey($plugin_id), 'item_name' => 'Custom Login Style Pack #1', // Name of this plugin (matching your EDD Download title). 'author' => 'Frosty Media', 'item_id' => (int), 'version' => '1.0.0', ]; \TheFrosty\WpUtilities\Plugin\Plugin $plugin ->add(new Edd\LicenseManager($plugin, $data)) ->add(new Edd\PluginUpdater($data['api_url'], __FILE__, $data)) ->initialize();