Skip to content

botble/license-manager-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

License Manager - Integration Examples

Code examples demonstrating how to integrate with the License Manager API across different platforms and frameworks.

Examples

Example Description
PHP Standalone PHP scripts using cURL - good for any PHP application
WordPress WordPress plugin with admin UI, auto-updates, and WP-Cron verification
Laravel Laravel package with service provider, Artisan commands, and middleware

API Overview

External API (Client-facing)

Used by client applications to manage their own licenses.

Endpoint Method Purpose
/api/external/connection-check GET Test API connectivity
/api/external/license/activate POST Activate a license
/api/external/license/verify POST Verify license validity
/api/external/license/deactivate POST Deactivate a license
/api/external/update/check POST Check for product updates
/api/external/update/latest POST Get latest version info
/api/external/update/{version}/download/{type} POST Download update files

Internal API (Server-to-server)

Used by backend systems to manage products and licenses programmatically.

Endpoint Method Purpose
/api/internal/connection-check GET Test connectivity
/api/internal/products GET/POST List or create products
/api/internal/products/{id} GET/PUT Get or update a product
/api/internal/product-licenses GET/POST List or create licenses
/api/internal/product-licenses/{id} GET/PUT Get or update a license
/api/internal/blocked-product-licenses/{id} POST/DELETE Block or unblock a license

Required Headers

All API requests must include:

Content-Type: application/json
X-API-KEY: {your-api-key}
X-API-URL: {your-application-url}
X-API-IP: {your-server-ip}
X-API-LANGUAGE: {locale, e.g. "en"}

Quick Start

  1. Set up a License Manager server
  2. Create an API key (External for client apps, Internal for server management)
  3. Create a product and generate license codes
  4. Choose an example that matches your platform
  5. Configure the credentials and start integrating

License

MIT

About

Examples for license manager script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published