Download the PHP package nazrulalif/laravel-pem-license-validator without Composer
On this page you can find all versions of the php package nazrulalif/laravel-pem-license-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nazrulalif/laravel-pem-license-validator
More information about nazrulalif/laravel-pem-license-validator
Files in nazrulalif/laravel-pem-license-validator
Package laravel-pem-license-validator
Short Description Offline PEM license validation for Laravel applications using RSA-4096 signatures
License MIT
Informations about the package laravel-pem-license-validator
Laravel PEM License Validator
Offline license validation for Laravel applications using RSA-4096 signed PEM files.
Features
- ✅ Offline validation (no internet required)
- ✅ RSA-4096 signature verification
- ✅ Configurable caching
- ✅ Optional grace period
- ✅ Hardware binding support
- ✅ Product key validation
- ✅ Feature flags (JSON-based)
- ✅ Laravel middleware included
- ✅ Facade support
Requirements
- PHP 8.1+
- Laravel 9.0+
- OpenSSL extension
- JSON extension
Installation
Publish Configuration
This creates config/license.php
Place License File
Place your license.pem file in:
Configuration
Edit config/license.php:
Environment Variables
Add these to your .env file:
Note: LICENSE_PRODUCT_KEY is optional. If set, the license must contain a matching productKey field for validation to pass.
Usage
Basic Validation
Using Facade
Middleware Protection
Register in app/Http/Kernel.php:
Use in routes:
Bootstrap Validation
In app/Providers/AppServiceProvider.php:
Feature Checks
API Reference
LicenseValidator
License Data Structure
Exception Handling
Troubleshooting
License file not found
Ensure license.pem exists at the configured path (default: storage/app/license.pem)
Invalid signature
- License file may be corrupted or tampered
- Public key in config doesn't match the key used to sign the license
Product key mismatch
- The
productKeyin the license doesn't matchLICENSE_PRODUCT_KEYin your.env - License was issued for a different product
- Remove
LICENSE_PRODUCT_KEYfrom.envto disable product key validation
Permission denied
Cache issues
Clear license cache:
Security
- Never commit
license.pemto version control - Add to
.gitignore:storage/app/license.pem - Keep public key secure in
.envfile - Use HTTPS when transferring license files
Support
For issues or questions, contact: [email protected]
License
MIT License - see LICENSE file
All versions of laravel-pem-license-validator with dependencies
ext-openssl Version *
ext-json Version *