Download the PHP package getkeymanager/php-sdk without Composer

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

KeyManager - PHP SDK

Version: 3.0.0 - Identifier-first architecture with offline-first validation!

Features

Core Features (v1.x)

New in v2.0.0

New in v2.1.0

New in v3.0.0 - BREAKING CHANGES

Offline .lic Parsing (LicenseValidator)

Force Validation Check

30+ new methods added while maintaining full backward compatibility!

Requirements

Installation

Via Composer (Recommended)

Manual Installation

  1. Download the SDK files
  2. Include the autoloader:

Quick Start

Initialize the Client

Validate a License (Online)

Activate a License

Deactivate a License

Check Feature Flags

Validate Offline License

Send Telemetry

Generate Hardware ID

Configuration Options

Option Type Default Description
apiKey string required Your API key
publicKey string null RSA public key for signature verification
baseUrl string https://api.getkeymanager.com API base URL
timeout int 30 Request timeout in seconds
verifySignatures bool true Verify response signatures
environment string null Environment (production/staging/development)
cacheEnabled bool true Enable response caching
cacheTtl int 300 Cache TTL in seconds
retryAttempts int 3 Number of retry attempts
retryDelay int 1000 Retry delay in milliseconds

Error Handling

The SDK uses a hierarchy of exceptions:

Example Error Handling

Caching

The SDK automatically caches:

Clear Cache

Signature Verification

All API responses are cryptographically signed. The SDK automatically verifies signatures when verifySignatures is enabled.

Using SignatureVerifier Directly

Verify JSON Response

Idempotency

Activation and deactivation operations support idempotency:

Best Practices

1. Store API Key Securely

2. Cache Hardware ID

3. Handle Network Failures Gracefully

4. Validate Licenses Periodically

Testing

Examples

See the /examples directory for complete working examples:

Support

License

MIT License - see LICENSE file for details

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines.

Changelog

See CHANGELOG.md for version history.


All versions of php-sdk with dependencies

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

Loading the files please wait ...