Download the PHP package naviisml/laravel-api-guard without Composer
On this page you can find all versions of the php package naviisml/laravel-api-guard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-api-guard
Laravel API Guard
A lightweight Laravel package to authenticate requests using API keys via a custom guard.
Features
- Auth guard:
auth:apikey - Secure access with public/private key headers
- Artisan command to generate keys
Installation
- Install the package (
composer require naviisml/laravel-api-guard) - Publish the configuration* (
php artisan api-guard:install)
*This step is optional.
- A auth guard will automatically be added if it doesn't exist in the
config/auth.phpconfiguration.
Usage
Authentication Guard
Use auth:apikey on API routes:
Required Headers
| Header | Description |
|---|---|
X-Public-Key |
Public API key |
X-Private-Key |
Private API key |
Generate Keys
Run the artisan command:
All versions of laravel-api-guard with dependencies
PHP Build Version
Package Version
No informations.
The package naviisml/laravel-api-guard contains the following files
Loading the files please wait ...