Download the PHP package groupesti/laravel-license without Composer
On this page you can find all versions of the php package groupesti/laravel-license. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download groupesti/laravel-license
More information about groupesti/laravel-license
Files in groupesti/laravel-license
Package laravel-license
Short Description Software licensing for Laravel: signed license tokens (JWT EdDSA/RS256), products/editions/features, device activations and validation logging.
License MIT
Homepage https://github.com/groupesti/laravel-license
Informations about the package laravel-license
Laravel License
Software licensing for Laravel: issue signed license tokens (JWT, EdDSA or RS256), validate them, manage products / editions / features, track per-device activations and log every validation — fully configurable and self-contained.
Installation
Signing keys are read from configuration (never the database). Generate an Ed25519 key pair and set:
Concepts
- Product / Edition / Feature — your catalogue. An edition bundles features (with optional per-feature limits).
- License — issued to a licensee (any model, via the
HasLicensestrait), carries atypeandstatus, validity window and device cap. - Activation — one row per device that has activated a license.
- ValidationLog — an audit trail of every validation attempt.
LicenseStatus, LicenseType, ActivationStatus and ValidationResult are
Eloquent models (reference tables) — you can add your own rows. The package
seeds the default values and exposes slug constants (e.g. LicenseStatus::ACTIVE).
Issuing a license
Or from the CLI:
Validating a license
Public HTTP endpoint (rate limited): POST /api/v1/license/validate.
Online (real-time) verification
Set online_verification on a license to require real-time validation. The
token then carries the flag and a heartbeat schedule (interval / grace,
from config('license.online_verification')), and the client must call the
validation endpoint at least once per interval.
- Licenses with
online_verificationare validated by the endpoint (live status, revocation and device checks); the response includes aheartbeatwith the next check-in time. - Licenses without it are meant to be validated offline — the endpoint
refuses them with
result: online_not_required(HTTP 409).
Attaching licenses to a model
Commands
HTTP API
POST /api/v1/license/validate— public validation./api/v1/admin/licenses/*— admin CRUD + catalogue (guarded byadmin_api_middleware).
Translations
Provided for en, fr, es.
License
MIT. See license.md.
All versions of laravel-license with dependencies
ext-openssl Version *
ext-sodium Version *
illuminate/support Version ^11.0 || ^12.0 || ^13.0
illuminate/database Version ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^11.0 || ^12.0 || ^13.0
illuminate/console Version ^11.0 || ^12.0 || ^13.0
illuminate/validation Version ^11.0 || ^12.0 || ^13.0
illuminate/routing Version ^11.0 || ^12.0 || ^13.0
ramsey/uuid Version ^4.7