PHP code example of liginc / unias-client-php

1. Go to this page and download the library: Download liginc/unias-client-php 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/ */

    

liginc / unias-client-php example snippets


new UniasProvider([
    'clientId'     => 'XXXXXXXXXXXXXXXXXXXX',
    'clientSecret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
    'redirectUri'  => 'https://yourservice.example.com/login/callback',
    'authorizeUri' => 'https://unias.example.com/',
    'tokenUri'     => 'https://api.unias.example.com/token',
    'apiBaseUri'   => 'https://api.example.com/',
]);