Download the PHP package mkr/smartdesk-license-client without Composer

On this page you can find all versions of the php package mkr/smartdesk-license-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package smartdesk-license-client

SmartDesk License Manager Client (WordPress)

WordPress

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


Features


Requirements


Installation

1. Install via Composer

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

2. Activate the plugin

3. Configure API endpoints (production)

By default the endpoints are defined in the plugin bootstrap:

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

Settings → SmartDesk License


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

Low-level client (if you need it)

Caching policy

✅ Transport errors, 5xx and 429 are cached (avoid storms).

❌ 4xx (client errors) are not cached.

TTL: 12h (configurable in code).


Secure secret storage

Secrets are stored via Helpers::set_secret/get_secret using HKDF-derived keys:


Optional: Updater

Enable the updater to feed WordPress’ updater UI based on the license:

Server contract (SDLC_API_UPDATE GET) should return e.g.:

The updater will:


Logging (SmartDesk DebugLogger)

Only active when WP_DEBUG === true. Secrets/keys are automatically redacted.


Multisite behavior


Testing

This project includes two PHPUnit suites:

Prerequisites

Database config is supplied via phpunit.xml.dist / phpunit.multisite.xml:

Create the DB once:

WordPress core for tests
Point WP_PHPUNIT__WP_DIR to your local WordPress core (downloaded once), e.g.:

Run tests

We pin PHPUnit 9.6 for compatibility with wp-phpunit/wp-phpunit.


Integration example (SmartDesk plugin)

A typical SmartDesk add-on/plugin can:

1. Require the client:

2. Verify license during plugins_loaded or before privileged actions:

3. Enforce limits:

4. (Optional) Enable updater in your plugin bootstrap:


Build & Release

Create a production zip (no dev-deps, optimized autoload):

Artifacts:


Troubleshooting


Security notes


License

GPL-3.0-or-later. See LICENSE.


Maintainer

SmartDesk (Martin Kronsteiner) — https://kronsteiner.gmbh


All versions of smartdesk-license-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
smartdesk/debug-logger Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mkr/smartdesk-license-client contains the following files

Loading the files please wait ...