Download the PHP package tipusultan/licensevalidator without Composer
On this page you can find all versions of the php package tipusultan/licensevalidator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tipusultan/licensevalidator
More information about tipusultan/licensevalidator
Files in tipusultan/licensevalidator
Package licensevalidator
Short Description A simple Laravel package for license validation
License MIT
Informations about the package licensevalidator
Laravel License Validator
A simple Laravel package for validating software licenses.
Installation
Install the package via composer:
Usage
1. Set up license key
Add your license key to your .env
file:
After installing the package, the license validation will automatically run for all web requests.
You can customize the cache duration in the middleware if you want to check less frequently:
3. Create error view
Create a view for license errors at resources/views/license/mismatch.blade.php
:
This approach will:
- Run your license validation for every web request
- Honor the caching you've implemented
- Not require any manual middleware registration
- Work with all routes without modifying route files
Just be aware that since this middleware is global, it will run for every request, including assets, API calls, etc. You might want to add logic to skip certain paths or request types if needed.
How It Works
This package validates your application license against a central validation server:
- The middleware checks if the current domain is authorized
- The validation result is cached for 24 hours for performance
- Console commands bypass validation
License
The MIT License (MIT). Please see License File for more information.
All versions of licensevalidator with dependencies
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/contracts Version ^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.0