lapisense / php-client
Generic PHP client for the Lapisense licensing API
0.2.0
2026-03-02 17:44 UTC
Requires
- php: >=7.4
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^1.2
- phpcompatibility/php-compatibility: ^9.3
- phpmd/phpmd: ^2.15
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6
- squizlabs/php_codesniffer: ^3.13
README
Generic PHP client for the Lapisense licensing REST API. Framework-agnostic — requires an HttpClientInterface implementation for HTTP transport.
Requirements
- PHP 7.4+
Installation
composer require lapisense/php-client
Usage
use Lapisense\PHPClient\ApiClient; $client = new ApiClient($storeUrl, $productUuid, $httpClient); $client->activate($licenseKey, $siteUrl); $client->deactivate($activationUuid); $client->checkUpdate($currentVersion); // free product $client->checkUpdate($currentVersion, $activationUuid); // licensed product $client->getProductInfo();
The $httpClient parameter must implement Lapisense\PHPClient\HttpClientInterface. See lapisense/wordpress-client for a WordPress implementation.
License
MIT