PHPackages                             mkr/smartdesk-license-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mkr/smartdesk-license-client

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

mkr/smartdesk-license-client
============================

License and policy Client-SDK for licensing and updates.

1.0.0(10mo ago)01GPL-3.0-or-laterPHPPHP &gt;=8.1

Since Sep 1Pushed 10mo agoCompare

[ Source](https://github.com/martin-kronsteiner/Smartdesk-LicenseClient)[ Packagist](https://packagist.org/packages/mkr/smartdesk-license-client)[ Docs](https://kronsteiner.gmbh)[ RSS](/packages/mkr-smartdesk-license-client/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

SmartDesk License Manager Client (WordPress)
============================================

[](#smartdesk-license-manager-client-wordpress)

[![License: GPL v3](https://camo.githubusercontent.com/48bf9b56d44f38db53ce21294cf0b9487d0a3734ab3ba1fe4c69858ae20db2c1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c76332d626c75652e737667)](LICENSE) [![PHP Version](https://camo.githubusercontent.com/7535257ca228724c93658bd52583d4e47a9bab02c356abf6e54c1d575f2151e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d626c75652e737667)](https://www.php.net/supported-versions.php) [![Packagist Version](https://camo.githubusercontent.com/6e5323f3b883d7568bef554b69aea119c768157bb4afb4143132d531554009d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6b722f736d6172746465736b2d6c6963656e73652d636c69656e742e737667)](https://packagist.org/packages/mkr/smartdesk-license-client) [![Packagist Downloads](https://camo.githubusercontent.com/dec023a2050b858449ee31cc51c83b432bc65e656a92b0d1fb89cceaff94d5c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6b722f736d6172746465736b2d6c6963656e73652d636c69656e742e737667)](https://packagist.org/packages/mkr/smartdesk-license-client) [![WordPress](https://camo.githubusercontent.com/2d7ecbd0de75900a848ee02bb4d682496d2f22bb7df770c74483d79a9271a07b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d506c7567696e2d3231373539423f6c6f676f3d776f72647072657373)](https://camo.githubusercontent.com/2d7ecbd0de75900a848ee02bb4d682496d2f22bb7df770c74483d79a9271a07b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d506c7567696e2d3231373539423f6c6f676f3d776f72647072657373)

**License &amp; policy Client-SDK for licensing, limits and plugin updates.**
Provides a tiny REST client, admin settings, secure secret storage, and an optional plugin updater.

- PHP 8.1+
- WordPress (single site &amp; multisite supported)
- Composer package: mkr/smartdesk-license-client

---

Features
--------

[](#features)

- **License verification** with 12h caching (forceable)
- **Limits &amp; plan** mapping (plan, limits\[\*\], expires\_at)
- **Secure secret storage:** encrypted at rest, admin UI never echoes secrets
- **Safe logging** via smartdesk/debug-logger (PII/keys redacted)
- **Multisite-aware:** options/secrets isolated per blog; per-blog home\_url() in payload
- **Optional updater:** integrates with WP’s update API (gated by license validity)
- **Well-tested:** PHPUnit suites for single site &amp; multisite

---

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- WordPress (recent version)
- Composer

---

Installation
------------

[](#installation)

**1. Install via Composer**

```
composer require mkr/smartdesk-license-client

```

> If used as a WordPress plugin, keep this repository as a plugin folder and run composer install.

**2. Activate the plugin**

- Upload/checkout the plugin into `wp-content/plugins/SmartDesk-LicenseClient/`
- Activate in **Plugins** → *SmartDesk License Manager Client*

**3. Configure API endpoints (production)**

By default the endpoints are defined in the plugin bootstrap:

```
define('SDLC_API_BASE',   'https://server.local/');
define('SDLC_API_VERIFY', SDLC_API_BASE . '/wp-json/smartdesk/v1/license/verify');
define('SDLC_API_PING',   SDLC_API_BASE . '/wp-json/smartdesk/v1/license/ping');
define('SDLC_API_UPDATE', SDLC_API_BASE . '/wp-json/smartdesk/v1/update/plugin');
```

For production, set your real base/paths.
Best practice is to ship these via your build or a small MU-plugin that defines the constants **before** this plugin loads.

---

Admin UI
--------

[](#admin-ui)

Settings → **SmartDesk License**

- Enter the license key (never echoed back; stored encrypted).
- “Verify now” triggers a forced verification (bypasses the 12h cache).
- A status box shows the current verify result.

---

Public API (what you’ll use from other plugins/themes)
------------------------------------------------------

[](#public-api-what-youll-use-from-other-pluginsthemes)

```
