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.
Download getkeymanager/codeigniter-sdk
More information about getkeymanager/codeigniter-sdk
Files in getkeymanager/codeigniter-sdk
Package codeigniter-sdk
Short Description Official CodeIgniter 4 SDK for License Management Platform - Easy license validation, activation, and management for CodeIgniter applications
License MIT
Homepage https://getkeymanager.com
Informations about the package codeigniter-sdk
KeyManager - License Manager CodeIgniter SDK
For KeyManager (https://getkeymanager.com).
Official CodeIgniter 4 SDK for License Management Platform. Easy license validation, activation, and management for CodeIgniter applications with library support and helper functions.
Features
- 🚀 Easy Integration - Simple library and helper functions
- 🎨 CodeIgniter-Native - Follows CodeIgniter 4 conventions
- 🛠️ Helper Functions - Convenient global functions
- 📝 Full Logging - Optional CodeIgniter logging integration
- ⚡ Response Caching - Automatic caching support
- 🔄 CodeIgniter 4.x - Full compatibility
- ✨ NEW: State-Based Validation - Enterprise-grade state management
- 🛡️ NEW: Grace Period Support - 72-hour failover protection
- 🔐 NEW: Enhanced Security - RSA-4096 signature verification
- 📊 NEW: API Response Codes - Standardized error handling
🆕 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:
- Prevents service disruption from network issues
- Cached licenses remain valid temporarily
- Configurable duration
Enhanced Error Handling
New State-Based Helpers
👉 See HARDENING_COMPLETE.md for full documentation
✅ 100% Backward Compatible - All existing code continues to work!
Requirements
- PHP 7.4 or higher
- CodeIgniter 4.0 or higher
- ext-json, ext-openssl, ext-curl
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
- Website: https://getkeymanager.com
- Documentation: https://docs.getkeymanager.com
- API Reference: https://dev.getkeymanager.com/api
- Issues: https://github.com/getkeymanager/codeigniter-sdk/issues
- Email: [email protected]
License
This SDK is open-sourced software licensed under the MIT license.
Related
All versions of codeigniter-sdk with dependencies
codeigniter4/framework Version ^4.0
getkeymanager/php-sdk Version ^2.0