Skip to content

[WIP] A PHP class abstraction for managing WordPress plugin licenses and auto-updates that are sold on an Easy Digital Downloads store.

Notifications You must be signed in to change notification settings

dwnload/EddSoftwareLicenseManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EDD Software License Manager

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

About

[WIP] A PHP class abstraction for managing WordPress plugin licenses and auto-updates that are sold on an Easy Digital Downloads store.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published