This is a Laravel package for Shieldfy SDK
You will need first to register on shieldfy.io to get your APP Key & APP Secret.
Through Composer (the recommended way)
composer require shieldfy/shieldfy-laravel-client
After installing the Shieldfy laravel library, register the Shieldfy\ShieldfyLaravelClient\ShieldfyServiceProvider
in your config/app.php
configuration file:
'providers' => [
...
Shieldfy\ShieldfyLaravelClient\ShieldfyServiceProvider::class,
],
Shieldfy takes its config from environment file .env
SHIELDFY_APP_KEY=YOUR_APP_KEY
SHIELDFY_APP_SECRET=YOUR_APP_SECRET
Add Shieldfy Middleware
If you’d like to configure Shieldfy further you can publish the configurations file.
php artisan vendor:publish
A file called shieldfy.php will be placed into your config folder config/shieldfy.php
.
Add Shieldfy middleware in your app/Http/Kernel.php
protected $middleware = [
...
\Shieldfy\ShieldfyLaravelClient\Middlewares\ShieldfyMiddleware::class
];
for more information about configurations and usage , go to the official documentation docs.shieldfy.io/docs
Thank you for considering contributing to this project! Bug reports, feature requests, and pull requests are very welcome.
If you discover a security vulnerability within this project, please send an e-mail to [email protected].