PHP code example of silinternational / idp-id-broker-php-client
1. Go to this page and download the library: Download silinternational/idp-id-broker-php-client 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/ */
silinternational / idp-id-broker-php-client example snippets
use Sil\Idp\IdBroker\Client\IdBrokerClient;
$idBrokerClient = new IdBrokerClient(
'https://api.example.com/', // The base URI for the API.
'DummyAccessToken', // Your HTTP header authorization bearer token.
[
'http_client_options' => [
'timeout' => 10, // An (optional) custom HTTP timeout, in seconds.
],
]
);
$users = $idBrokerClient->listUsers();