rezozero / fsirius-sdk-v1
Forum Sirius APIv1 PHP SDK
Requires
- php: >=8.3
- ext-json: *
- doctrine/cache: ^1.7.1
- symfony/http-client: 7.4.*
- symfony/security-http: 7.4.*
Requires (Dev)
- phpstan/phpstan: *
- rector/rector: *
- symfony/error-handler: 7.4.*
- 9.1.4
- 9.1.3
- v8.x-dev
- 8.2.21
- 8.2.20
- v7.x-dev
- 7.0.38
- v6.x-dev
- dev-develop / 6.x-dev
- dev-master / 5.x-dev
- 5.0.1
- 5.0.0
- 4.0.0
- 3.1.0
- 3.0.0
- 2.0.0
- 1.2.1
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- v1.0.x-dev
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-feat/vitepress-documentation
- dev-docs/vitepress-backport
- dev-feat/improve-place
- dev-feat/pickupLocation-field
- dev-feat/update-deps
This package is auto-updated.
Last update: 2026-03-27 14:31:05 UTC
README
Use Symfony HTTP Client
Available methods:
- Contexte
- ListeSC
- ParamSC
- DispoListeSC
Events « séances » are mapped to RZ\FSirius\EventDate object by calling $client->getEventDates($sessionToken, $eventId).
Get a session token by calling:
$client->setEventId($eventId); $sessionToken = $client->getSessionToken();
Authentication
This package provides a simple Account and Symfony Authenticator: SiriusAccountAuthenticator to authenticate Sirius customer.
However, you must provide your own CredentialsInterface implementation because Sirius does not provide SSO mechanism.
For example, you can create a password-less authentication system using JWT sent by email combined with $account->getSurvey() to
check user permissions.
$surveyFields = explode(';', $user->getSurvey() ?? ''); if (false === $surveyFields || !in_array($this->professionalField, $surveyFields)) { throw new BadCredentialsException('account_is_not_professional'); }
Timezone
Be careful, Forum Sirius API servers are using Europe/Paris timezone.
Make sure your application is configured with the same timezone.