lapisense/php-client

Generic PHP client for the Lapisense licensing API

Maintainers

Package info

github.com/Lapisense/lapisense-php-client

pkg:composer/lapisense/php-client

Statistics

Installs: 45

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

0.2.0 2026-03-02 17:44 UTC

This package is auto-updated.

Last update: 2026-03-11 14:08:04 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