Download the PHP package vdhoangson/laravel-api-auth without Composer
On this page you can find all versions of the php package vdhoangson/laravel-api-auth. 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-auth
Laravel API Auth
A simple Laravel package for API authentication using custom client credentials via headers.
Installation
-
Install the package
- Register the Service Provider (if not auto-discovered)
Add to bootstrap/providers.php:
(This package autoload provider)
-
Publish config and run migrations
- Add data to the
api_clientstable
Create a record with the fields: name, client, client_secret.
-
Use the middleware in your routes
- Send a test request
Send a request with the following headers:
X-ClientX-Client-Secret
Example:
Funding
If you find this package helpful, you can support the author via GitHub Sponsors:
github.com/sponsors/vdhoangson
License
MIT
All versions of laravel-api-auth with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package vdhoangson/laravel-api-auth contains the following files
Loading the files please wait ...