Download the PHP package jmrashed/purchase-key-guard without Composer
On this page you can find all versions of the php package jmrashed/purchase-key-guard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jmrashed/purchase-key-guard
More information about jmrashed/purchase-key-guard
Files in jmrashed/purchase-key-guard
Package purchase-key-guard
Short Description A Laravel package to protect usage via a purchase key.
License MIT
Informations about the package purchase-key-guard
Purchase Key Guard
Introduction
Purchase Key Guard is a Laravel package that helps protect your Laravel application from unauthorized use by validating a purchase key. It uses middleware to ensure that the application can only be used with a valid purchase key, making it a great solution for commercial or licensed applications.
Features
- Middleware to validate purchase keys.
- API support for key validation.
- Easy-to-configure purchase key service.
- Customizable via configuration file.
- Integration with Laravel service providers and facades.
- Includes artisan commands for key management.
Installation
You can install the package via Composer:
Once installed, publish the configuration file using the following command:
This will create a purchase_key.php
configuration file in your config/
directory.
Usage
After installation, the package adds middleware to validate the purchase key. Add the middleware to your app/Http/Kernel.php
:
You can also use the provided PurchaseKeyService
to programmatically verify purchase keys.
Configuration
You can modify the configuration by editing the purchase_key.php
file. Here, you can set the default key, API settings, and more.
Testing
To run the package tests, simply execute:
License
The MIT License (MIT). Please see the LICENSE file for more details.