Download the PHP package primocys/validity-kit without Composer
On this page you can find all versions of the php package primocys/validity-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download primocys/validity-kit
More information about primocys/validity-kit
Files in primocys/validity-kit
Download primocys/validity-kit
More information about primocys/validity-kit
Files in primocys/validity-kit
Vendor primocys
Package validity-kit
Short Description Laravel application authorization toolkit
License MIT
Homepage https://github.com/kishanprimo/validity-kit
Package validity-kit
Short Description Laravel application authorization toolkit
License MIT
Homepage https://github.com/kishanprimo/validity-kit
Please rate this library. Is it a good library?
Informations about the package validity-kit
Validity Kit
Laravel application authorization toolkit: purchase-code validation and periodic license verification for Laravel 10, 11 and 12.
Installation
The service provider is auto-discovered. To customise settings, publish the config:
Configuration
| Env variable | Default | Description |
|---|---|---|
LICENSE_VERIFY_URL |
— | Endpoint that re-verifies a saved token |
LICENSE_VALIDATE_URL |
— | Endpoint that exchanges a purchase code for a token |
LICENSE_TOKEN_FILE |
storage/app/validatedToken.txt |
Where the token is stored |
LICENSE_VERIFY_AFTER_HOURS |
2 |
How often the token is re-verified |
LICENSE_GRACE_HOURS |
24 |
How long the app keeps working while the license server is unreachable |
LICENSE_HTTP_TIMEOUT |
10 |
HTTP timeout in seconds |
LICENSE_MIDDLEWARE_ENABLED |
true |
Apply the license check to every request |
Usage
Validate a purchase code (for example from an install/activation route):
Paths listed in middleware.except skip the check, so keep the activation route there.
Middleware
By default the check runs globally. To protect only specific routes, set
LICENSE_MIDDLEWARE_ENABLED=false and use the license alias:
License
MIT
All versions of validity-kit with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
The package primocys/validity-kit contains the following files
Loading the files please wait ...