Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dwnload/eddsoftwarelicensemanager
[WIP] A PHP class abstraction for managing WordPress plugin licenses and auto-updates that are sold on an Easy Digital Downloads store.
https://github.com/dwnload/eddsoftwarelicensemanager
easy-digital-downloads package php wordpress wordpress-php-library
Last synced: about 1 month ago
JSON representation
[WIP] A PHP class abstraction for managing WordPress plugin licenses and auto-updates that are sold on an Easy Digital Downloads store.
- Host: GitHub
- URL: https://github.com/dwnload/eddsoftwarelicensemanager
- Owner: dwnload
- Created: 2017-08-13T16:36:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-15T21:28:51.000Z (about 1 year ago)
- Last Synced: 2024-10-29T00:56:01.002Z (about 2 months ago)
- Topics: easy-digital-downloads, package, php, wordpress, wordpress-php-library
- Language: PHP
- Homepage:
- Size: 92.8 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELONG.md
Awesome Lists containing this project
README
# EDD Software License Manager
[![PHP from Packagist](https://img.shields.io/packagist/php-v/dwnload/edd-software-license-manager.svg)]()
[![Latest Stable Version](https://img.shields.io/packagist/v/dwnload/edd-software-license-manager.svg)](https://packagist.org/packages/dwnload/edd-software-license-manager)
[![Total Downloads](https://img.shields.io/packagist/dt/dwnload/edd-software-license-manager.svg)](https://packagist.org/packages/dwnload/edd-software-license-manager)
[![License](https://img.shields.io/packagist/l/dwnload/edd-software-license-manager.svg)](https://packagist.org/packages/dwnload/edd-software-license-manager)
![Build Status](https://github.com/dwnload/WpSettingsApi/actions/workflows/main.yml/badge.svg)
[![codecov](https://codecov.io/gh/dwnload/WpSettingsApi//branch/develop/graph/badge.svg)](https://codecov.io/gh/dwnload/WpSettingsApi/)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:
```json
{
"require": {
"dwnload/edd-software-license-manager": "^2.0"
}
}
```Now run:
`$ composer install dwnload/edd-software-license-manager`
### How to use this package
```php
$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();
```