PHP code example of antoinelemaire / sqreen-php-client

1. Go to this page and download the library: Download antoinelemaire/sqreen-php-client 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/ */

    

antoinelemaire / sqreen-php-client example snippets



use Sqreen\SqreenClient;

$client = new SqreenClient(
    '1234567890123456789012', // applicationId
    '[email protected]',      // email
    'my_beautiful_password!'  // password
    );

// Get Security Response events
$events = $client->application->getSecurityResponse();

// Stop a Security Response
$securityResponseId = 'NWJlMTk2ZDdmM2Y1ZmEwMDE1MTMwMTRhOjVjM2UwZjIzMjlmMTcwMDAxZWM3NTM5MDo1YzNmNjQwNDUJyksICgnaWQnLCAnMzAzMzE3OCcpXSk6YmFjYTJiMmMxOWIwMTFlOWFlM2IwMjQyYWMxMTAwMDM';
$events = $client->application->deleteSecurityResponse($securityResponseId);