Search by

lapisense / php-client

coenjacobs

Generic PHP client for the Lapisense licensing API

0.3.0 2026-03-16 16:47 UTC

This package is auto-updated.

Last update: 2026-08-16 17:41:59 UTC


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