https://github.com/rezozero/fsirius-sdk-v1
Forum Sirius APIv1 PHP SDK
https://github.com/rezozero/fsirius-sdk-v1
forumsirius php7 sdk-php
Last synced: 5 days ago
JSON representation
Forum Sirius APIv1 PHP SDK
- Host: GitHub
- URL: https://github.com/rezozero/fsirius-sdk-v1
- Owner: rezozero
- Created: 2017-09-12T09:57:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-08-11T07:50:18.000Z (3 months ago)
- Last Synced: 2025-08-11T09:30:26.808Z (3 months ago)
- Topics: forumsirius, php7, sdk-php
- Language: PHP
- Size: 123 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Forum Sirius APIv1 PHP SDK
**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:
```php
$client->setEventId($eventId);
$sessionToken = $client->getSessionToken();
```
## Authentication
This package provides a simple `Account` and [Symfony Authenticator](https://symfony.com/doc/current/security/custom_authenticator.html#security-passports): `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.
```php
$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.