##Usage
$config = [
'clientId' => 'my-client-id',
'clientSecret' => 'my-client-secret',
'redirectUri' => 'https://my-uri.example.com',
'environment' => Apploud\OAuth2\Client\Provider\SpartaIdEnvironment::DEVELOPMENT, // or CLIENT or STAGING or PRODUCTION
];
$provider = new Apploud\OAuth2\Client\Provider\SpartaId($config);
Afterwards, use this provider as you would otherwise do, with any other OAuth2 provider from PHPLeague (see docs).