Skip to content
Michel edited this page Nov 5, 2024 · 12 revisions

SLM Plus - License Management API Integration

SLM Plus is a robust license management API integration for WordPress, allowing developers to securely manage software licenses within their own applications or themes. This solution is designed to provide flexibility, security, and ease of integration, enabling your applications to validate, activate, deactivate, and retrieve detailed information on user licenses.

Key Features

  • License Creation: Automatically create licenses for new purchases or registrations.
  • License Activation: Securely activate licenses for specific domains or devices.
  • License Deactivation: Allow users to free up licenses by deactivating them from domains or devices.
  • License Status Check: Easily verify the current status of a license.
  • Detailed License Information Retrieval: Retrieve comprehensive information on license usage, including registered domains and devices.

How it Works

This project contains a set of PHP files and a core configuration file that together provide a simple, modular approach for integrating with the SLM Plus WordPress plugin. The core components include:

  • CoreConfig.php: Contains global settings, constants, and utility methods for API requests and responses.
  • LicenseAPI.php: Acts as an API wrapper with methods for each license management action.
  • Action Files:
    • CreateLicense.php: Creates a new license.
    • ActivateLicense.php: Activates a license for a domain or device.
    • DeactivateLicense.php: Deactivates a license from a domain or device.
    • CheckLicense.php: Checks the status of a license.
    • GetLicenseInfo.php: Retrieves detailed license information.

Each action file includes code to make API calls using LicenseAPI.php, process responses, and provide clear, actionable feedback to users.

Requirements

  • PHP 7.4 or higher
  • cURL enabled in PHP
  • WordPress with SLM Plus plugin installed and configured

Installation

  1. Clone or download this repository.
  2. Make sure all required PHP files are in the same directory.
  3. Edit CoreConfig.php to set your API URL and secret key.
  4. Follow the individual action guides below for integrating each license management feature into your application.

Getting Started

To get started with SLM Plus, see our guides.

Support and Contributions

Contributions are welcome! Please open an issue or submit a pull request for bug fixes, enhancements, or new features.

For questions or support, reach out to us via the Issues section of this repository.