Documentation
Getting Started
- Introduction
- Setup
- General Settings
- WooCommerce
- Tools
- Analytics Reports
- Dashboard
- License
- Generator
- Activations
- Applications
- Installed On
- API Logs
- WooCommerce Products
- Customer License Manager Flow
Integrations
For Developer
PHP SDK
The Ultimate PHP Licensing Engine for SaaS, CMS, and Custom Software. Stop building custom Licensing APIs. This framework-agnostic SDK is the enterprise-grade bridge between your application and your License Manager for WooCommerce (Pro) backend.
π Accelerate Your Software Monetization
If you are building a SaaS or selling custom software, your focus should be on your productβnot building complex REST API integrations for licensing.
This SDK provides 100% native coverage of all endpoints in the License Manager for WooCommerce (Pro) ecosystem. Integrate robust activation, validation, and update management into your software in minutes.
π‘οΈ Why Choose This SDK?
- Zero API Manual Coding: Every endpoint is mapped to a simple PHP method.
- Framework Agnostic: Pure PHP cURL implementation. Works perfectly in Laravel, CodeIgniter, WordPress, or any custom standalone application.
- Enterprise Ready: Designed to handle high-volume license generation and multi-tier SaaS fulfillment.
- Data Sovereignty: Keep 100% of your customer data and revenue. No third-party commissions.
π Professional API Support Matrix
This SDK provides 100% native coverage for every endpoint in the License Manager for WooCommerce (Pro) ecosystem. No more manual cURL requests.
π Core Licensing
| Feature | SDK Method | API Endpoint |
|---|---|---|
| List Licenses | $client->licenses()->list() | GET /licenses |
| Retrieve License | $client->licenses()->get($key) | GET /licenses/{key} |
| Create License | $client->licenses()->create($data) | POST /licenses |
| Update License | $client->licenses()->update($key, $data) | PUT /licenses/{key} |
| Delete License | $client->licenses()->delete($key) | DELETE /licenses/{key} |
| Activate License | $client->licenses()->activate($key) | GET /activate/{key} |
| Reactivate License | $client->licenses()->reactivate($key, $token) | GET /activate/{key} |
| Deactivate License | $client->licenses()->deactivate($key) | GET /deactivate/{key} |
| Validate License | $client->licenses()->validate($key) | GET /validate/{key} |
βοΈ License Generators
| Feature | SDK Method | API Endpoint |
|---|---|---|
| List Generators | $client->generators()->list() | GET /generators |
| Retrieve Generator | $client->generators()->get($id) | GET /generators/{id} |
| Create Generator | $client->generators()->create($data) | POST /generators |
| Update Generator | $client->generators()->update($id, $data) | PUT /generators/{id} |
| Delete Generator | $client->generators()->delete($id) | DELETE /generators/{id} |
| Generate Keys (Pro) | $client->generators()->generate($id, $data) | POST /generators/{id}/generate |
π Merchant & SaaS (Pro)
| Feature | SDK Method | API Endpoint |
|---|---|---|
| Customer Licenses | $client->customers()->getLicenses($id) | GET /customers/{id}/licenses |
| Products/Ping | $client->products()->ping($data) | POST /products/ping |
| Products/Update | $client->products()->update($key) | GET /products/update/{key} |
| Download Products | $client->products()->downloadUrl($key) | GET /products/download/latest/{key} |
| Retrieve Application | $client->applications()->get($id) | GET /application/{id} |
| Download Application | $client->applications()->downloadUrl($id, $token) | GET /application/{id}/download |
π The Revenue Model: Free SDK + Pro Engine
The SDK is your “Client Side” tool to be bundled with your software. To serve as the merchant backend, you must have the Pro Engine.
| Phase | Client SDK (This Free Repo) | Pro Engine (Your WooCommerce Store) |
|---|---|---|
| Purpose | Connects your software to your store. | Handles orders, payments, and keys. |
| Availability | Free for all developers. | Purchase Required Here |
π¦ 3-Minute Developer Quick Start
Step 1: Upload the SDK
Copy the lmw-client-sdk folder into your project’s vendor directory. Your file structure should look like this:
your-software/
βββ vendor/
β βββ lmw-client-sdk/
β βββ lmw-sdk.php (Entry File)
β βββ src/ (Core Logic)
β βββ images/ (Assets)
βββ includes/
βββ your-main-file.php
Step 2: Initialization
Require the entry point and initialize the client:
require_once __DIR__ . '/vendor/lmw-client-sdk/lmw-sdk.php';
$client = lmw_sdk_init([
'store_url' => 'https://your-store.com',
'consumer_key' => 'ck_xxxxxxxxxxxx',
'consumer_secret' => 'cs_xxxxxxxxxxxx',
]);
3. Basic Activation Pattern
try {
$result = $client->licenses()->activate( 'ABCD-1234-EFGH-5678' );
// Store $result->activationData->token for future validation
} catch ( \Exception $e ) {
echo "Error: " . $e->getMessage();
}
ποΈ Framework Integration
Laravel
Use the SDK in your Service Layer or Controllers. Store credentials in .env and initialize the LicenseManagerClient using the native autoloader.
CodeIgniter / Standalone
Place the folder in your ThirdParty or Libraries directory and require lmw-sdk.php.
π Get the Pro Merchant Engine Today
Unlock 100% of the SDK’s power by upgrading to the Pro edition of License Manager for WooCommerce.