shieldfy/shieldfy-laravel-client

This package is abandoned and no longer maintained. No replacement package was suggested.

shieldfy firewall component for laravel framework

2.1.0 2017-08-01 10:51 UTC

This package is not auto-updated.

Last update: 2020-01-18 21:05:32 UTC


README

This is a Laravel package for Shieldfy SDK

Packagist StyleCI

Installation

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

Configuration

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.

Usage

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

Contributing

Thank you for considering contributing to this project! Bug reports, feature requests, and pull requests are very welcome.

Security Vulnerabilities

If you discover a security vulnerability within this project, please send an e-mail to security@shieldfy.com.