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.
2.0.0
2023-11-15 21:26 UTC
Requires
- php: ^8.0
- composer/installers: ~2.0
- dwnload/wp-settings-api: ^3.9
- thefrosty/wp-utilities: ^3.2
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.4
- squizlabs/php_codesniffer: ^3.2
- symfony/var-dumper: ^5.4 || ^6.2
- wp-phpunit/wp-phpunit: ^6.3
- yoast/phpunit-polyfills: ^2.0
This package is auto-updated.
Last update: 2024-11-19 17:29:30 UTC
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.0" } }
Now run:
$ composer install dwnload/edd-software-license-manager
How to use this package
$license = \get_option(\Dwnload\EddSoftwareLicenseManager\Edd\AbstractLicenceManager::LICENSE_SETTING, []); $data = [ 'license' => $license[$plugin_id]['license'] ?? '', '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('https://frosty.media/', __FILE__, $data)) ->initialize();