PHP code example of filagora / filagora-compliance
1. Go to this page and download the library: Download filagora/filagora-compliance library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
filagora / filagora-compliance example snippets
Route::post('/profile/cookie-consent', fn (Request $r, CookieConsent $consent) =>
response()->json($consent->save($r->user(), $r->validate(['groups' => 'array', 'cookies' => 'array']), $r->ip(), $r->userAgent())->consent))
->middleware('auth');
->plugin(\Filagora\Compliance\FilagoraCompliancePlugin::make())