Integrate Symfony

Require shieldfy package

From your console navigate to your application folder and enter the command below:

composer require shieldfy/shieldfy-php-client

for more information about composer click here

Add symfony bundle

Add shieldfy bundle to config/bundles.php file

Shieldfy\Extensions\Symfony\ShieldfyBundle::class => ['all' => true],

Add shieldfy event subscriber

Add shieldfy subscriber to config/services.yaml file

            - { name: kernel.event_listener, event: kernel.controller }

Add shieldfy protection to your controllers

all of your controllers must implement this Interface Shieldfy\Extensions\Symfony\ShieldfySymfonyControllerInterface

namespace App\Controller;

use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Shieldfy\Extensions\Symfony\ShieldfySymfonyControllerInterface;

class UsersController extends Controller implements ShieldfySymfonyControllerInterface 

Add Shieldfy Key & Secret

Add your key and secret to .env file