PHPackages                             licensechain/sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. licensechain/sdk

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

licensechain/sdk
================

Official LicenseChain PHP SDK for license management and validation

v1.0.1(5mo ago)00Elastic-2.0PHPPHP &gt;=7.4CI passing

Since Dec 7Pushed 1mo agoCompare

[ Source](https://github.com/LicenseChain/LicenseChain-PHP-SDK)[ Packagist](https://packagist.org/packages/licensechain/sdk)[ Docs](https://docs.licensechain.app/sdks/php)[ RSS](/packages/licensechain-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

LicenseChain PHP SDK
====================

[](#licensechain-php-sdk)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP](https://camo.githubusercontent.com/eed8831a0d43fbfc82808bf141626e5b1c2190b8924b8c41971019a8910a411a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302b2d626c75652e737667)](https://www.php.net/)[![Packagist](https://camo.githubusercontent.com/81b283f60f368a439c7108975f0be5ddbbc910f00f504fda640c5345ed42b5bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6963656e7365636861696e2f73646b)](https://packagist.org/packages/licensechain/sdk)[![Composer](https://camo.githubusercontent.com/7666f9158fb2e3103c90f2c0cd7aa46a61fed424c24f558c9efdd74619dde43d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6d706f7365722d322e302b2d677265656e2e737667)](https://getcomposer.org/)

Official PHP SDK for LicenseChain - Secure license management for PHP applications.

🚀 Features
----------

[](#-features)

- **🔐 Secure Authentication** - User registration, login, and session management
- **📜 License Management** - Create, validate, update, and revoke licenses
- **🛡️ Hardware ID Validation** - Prevent license sharing and unauthorized access
- **🔔 Webhook Support** - Real-time license events and notifications
- **📊 Analytics Integration** - Track license usage and performance metrics
- **⚡ High Performance** - Optimized for production workloads
- **🔄 Async Operations** - Non-blocking HTTP requests and data processing
- **🛠️ Easy Integration** - Simple API with comprehensive documentation

📦 Installation
--------------

[](#-installation)

### Method 1: Composer (Recommended)

[](#method-1-composer-recommended)

```
# Install via Composer
composer require licensechain/sdk

# Or add to composer.json
composer require licensechain/sdk:^1.0
```

### Method 2: Manual Installation

[](#method-2-manual-installation)

1. Download the latest release from [GitHub Releases](https://github.com/LicenseChain/LicenseChain-PHP-SDK/releases)
2. Extract to your project directory
3. Include the autoloader

### Method 3: Git Repository

[](#method-3-git-repository)

```
# Add to composer.json
{
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/LicenseChain/LicenseChain-PHP-SDK.git"
        }
    ],
    "require": {
        "licensechain/sdk": "dev-main"
    }
}
```

License assertion JWT (RS256 + JWKS)
------------------------------------

[](#license-assertion-jwt-rs256--jwks)

When Core API returns **`license_token`** and **`license_jwks_uri`**, verify offline with **`LicenseChain\LicenseAssertion::verifyLicenseAssertionJwt`** (Firebase JWT + JWKS; claim **`token_use`** = **`licensechain_license_v1`**). A minimal **JWKS-only** CLI (token + URL, no prior `verify` call in-process) lives at [`examples/jwks_only.php`](examples/jwks_only.php).

🚀 Quick Start
-------------

[](#-quick-start)

### Basic Setup

[](#basic-setup)

```
