- How do I install Licentra for Laravel with Composer?
- Install it with Composer using composer require hanzo-asashi/licentra-laravel. Laravel package discovery should register the service provider automatically. Then publish any provided config or migrations and follow the repository setup notes for API credentials and environment values.
- What does the Licentra Laravel package actually do?
- It is the official Laravel client SDK for Licentra license management. It supports license key generation and validation, binding keys to domains or installations, activation limits, feature flags, RS256 JWT offline validation, an auto-updater, concurrent seat management, renewals, and expiry. It includes migrations, middleware, Eloquent models, and an API intended for SaaS and self-hosted products.
- Does Licentra for Laravel support offline license validation?
- Yes. The package includes RS256 JWT offline validation, so license tokens can be verified locally without a network round trip. This is useful for performance, resilience, and environments with restricted connectivity. Check the repository docs for key configuration and token handling.
- How does concurrent seat management work in Licentra for Laravel?
- Licentra for Laravel includes concurrent seat management and activation-limit enforcement. You can bind license keys to domains or installations and let the SDK enforce the allowed number of active seats. Review the package docs for the exact seat lifecycle and release behavior.
- Can I use Licentra Laravel for feature flags?
- Yes, feature flags are part of the official Licentra Laravel client SDK. You can use them alongside license verification to gate product capabilities for licensed customers. The package's clean API is intended for both SaaS and self-hosted products.
- Which Laravel versions does hanzo-asashi/licentra-laravel support?
- The package is an official Laravel client SDK, but the README excerpt here does not list exact version constraints. Check the composer.json and repository tags for the supported Laravel and PHP versions. Laravel package discovery and the included middleware and models suggest a standard modern Laravel integration.
- How do I protect routes using Licentra license middleware?
- The package ships with middleware for license enforcement. Register or alias the middleware in your Laravel app and apply it to the routes or route groups that require a valid license. Check the repository docs for the exact middleware alias and expected license headers or session state.
- Does the package include database migrations and Eloquent models?
- Yes. The package includes migrations and Eloquent models for license-related data. That lets you store and query license records through Laravel's normal Eloquent layer. Publish the migrations during installation and run php artisan migrate.
- How are license renewals and expiry handled in Licentra for Laravel?
- Licentra for Laravel handles renewals and expiry as part of the license lifecycle. The SDK can validate keys and check expiration, while renewals are managed through Licentra. Use the package's models and API to surface renewal state in your app; see the docs for scheduled checks and edge cases.
- How can I test license verification without calling the Licentra API?
- Because the SDK supports RS256 JWT offline validation, you can test license checks locally with signed test tokens instead of hitting the Licentra API. Use Laravel's testing tools to bind fake license records or configure test credentials, depending on the package's documented hooks. Check the repository for test helpers and recommended fixture patterns.