PHP code example of dwnload / edd-software-license-manager
1. Go to this page and download the library: Download dwnload/edd-software-license-manager library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dwnload / edd-software-license-manager example snippets
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();