Download the PHP package tweekersnut/license-sdk without Composer

On this page you can find all versions of the php package tweekersnut/license-sdk. 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 license-sdk

TweekersNut License SDK for PHP

Official PHP SDK for integrating TweekersNut License Management System into your applications.

Latest Version PHP Version License

Features

Installation

Install via Composer:

Quick Start

1. Initialize the Client

2. Activate a License

3. Validate License

4. Check Features

Complete Example

API Reference

LicenseClient

Constructor

Methods

activate(string $licenseKey): array

Activate a license with the provided license key.

Returns: ['success' => true, 'message' => '...']

Throws: LicenseException on failure

validate(bool $online = true): array

Validate the current license.

Parameters:

Returns: ['valid' => true, 'license_key' => '...', 'features' => [...]]

Throws: ValidationException if no license is activated

hasFeature(string $featureName): bool

Check if a specific feature is enabled.

Returns: true if feature is enabled, false otherwise

getFeatures(): array

Get all enabled features.

Returns: Array of feature names

deactivate(): array

Deactivate the current license.

Returns: ['success' => true, 'message' => '...']

Throws: LicenseException on failure

isActivated(): bool

Check if a license is currently activated.

Returns: true if activated, false otherwise

getLicenseInfo(): ?array

Get current license information.

Returns: License data array or null if not activated

Integration Examples

WordPress Plugin

Laravel Application

Standalone Application

Hardware Fingerprinting

The SDK automatically collects hardware information for license binding:

Important: The SDK only fingerprints permanent hardware. USB drives, external storage, and removable media are excluded to prevent false hardware change detections.

Caching

The SDK automatically caches validation results for 15 minutes to reduce server load and improve performance. Cache is stored in the system temp directory by default.

Error Handling

The SDK provides specific exceptions for different error types:

Requirements

Support

License

MIT License. See LICENSE file for details.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.


Made with ❤️ by TweekersNut Network


All versions of license-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-curl Version *
ext-json Version *
ext-openssl Version *
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 tweekersnut/license-sdk contains the following files

Loading the files please wait ...