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

FeatureSDK MethodAPI 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

FeatureSDK MethodAPI 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)

FeatureSDK MethodAPI 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.

PhaseClient SDK (This Free Repo)Pro Engine (Your WooCommerce Store)
PurposeConnects your software to your store.Handles orders, payments, and keys.
AvailabilityFree 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.

On this page

    Scroll to Top
    license Manager For WooCommerce

    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.