PHP code example of rezozero / fsirius-sdk-v1
1. Go to this page and download the library: Download rezozero/fsirius-sdk-v1 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/ */
rezozero / fsirius-sdk-v1 example snippets
$client->setEventId($eventId);
$sessionToken = $client->getSessionToken();
$surveyFields = explode(';', $user->getSurvey() ?? '');
if (false === $surveyFields || !in_array($this->professionalField, $surveyFields)) {
throw new BadCredentialsException('account_is_not_professional');
}