Download the PHP package getkeymanager/codeigniter-sdk without Composer

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

KeyManager - License Manager CodeIgniter SDK

For KeyManager (https://getkeymanager.com).

Latest Version License

Official CodeIgniter 4 SDK for License Management Platform. Easy license validation, activation, and management for CodeIgniter applications with library support and helper functions.

Features

🆕 What's New in v2.0

The CodeIgniter SDK has been hardened with enterprise-grade features:

State-Based Validation

Instead of raw API responses, use typed LicenseState objects:

Grace Period Protection

Automatic 72-hour grace period when API is unreachable:

Enhanced Error Handling

New State-Based Helpers

👉 See HARDENING_COMPLETE.md for full documentation

✅ 100% Backward Compatible - All existing code continues to work!

Requirements

Installation

Install via Composer:

Configuration

Copy the configuration file to your app/Config directory:

Edit app/Config/GetKeyManager.php:

Using Environment Variables

You can also use .env file:

And load them in config:

Quick Start

Using the Library

Using Helper Functions

Library Usage

Basic Operations

Offline Validation

Creating Licenses

Helper Functions Reference

Load the helper in your controller or view:

Available Functions

getkeymanager(): GetKeyManagerLibrary

Get the library instance.

validate_license(string $licenseKey, array $options = []): array

Validate a license key.

is_license_valid(string $licenseKey, array $options = []): bool

Quick boolean check if license is valid.

activate_license(string $licenseKey, array $options = []): array

Activate a license.

deactivate_license(string $licenseKey, array $options = []): array

Deactivate a license.

check_feature(string $licenseKey, string $featureName): array

Check if a feature is enabled.

is_feature_enabled(string $licenseKey, string $featureName): bool

Quick boolean check if feature is enabled.

get_license_details(string $licenseKey): array

Get detailed license information.

generate_hardware_id(): string

Generate a hardware ID for this device.

generate_uuid(): string

Generate a UUID v4.

validate_offline_license($offlineLicenseData, array $options = []): array

Validate an offline license file.

Filter/Middleware Example

Create a filter for route protection:

Register in app/Config/Filters.php:

Use in routes:

Advanced Usage

License Management

Metadata Operations

Telemetry

Downloadables

Error Handling

Testing

Configuration Reference

All configuration options in app/Config/GetKeyManager.php:

Option Type Default Description
apiKey string '' Your API key
baseUrl string https://api.getkeymanager.com API base URL
environment string 'production' Environment (production/staging/development)
verifySignatures bool true Enable signature verification
publicKey string|null null RSA public key for verification
timeout int 30 HTTP timeout in seconds
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
loggingEnabled bool false Enable logging
logThreshold int 1 Log threshold level (1-4)

Examples

See the examples directory for complete working examples.

API Reference

The CodeIgniter SDK proxies all methods from the base PHP SDK. See the full API reference.

Support

This SDK is open-sourced software licensed under the MIT license.

Related


All versions of codeigniter-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
codeigniter4/framework Version ^4.0
getkeymanager/php-sdk Version ^2.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 getkeymanager/codeigniter-sdk contains the following files

Loading the files please wait ...