PHP code example of apploud / oauth2-spartaid
1. Go to this page and download the library: Download apploud/oauth2-spartaid 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/ */
apploud / oauth2-spartaid example snippets
$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);