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

This package is auto-updated.

Last update: 2024-04-15 22:19:07 UTC


README

PHP from Packagist Latest Stable Version Total Downloads License Build Status codecov

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();