1. Go to this page and download the library: Download identio/php-sdk 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/ */
identio / php-sdk example snippets
use Identio\Sdk\Config\IdentioConfig;
use Identio\Sdk\IdentioClient;
$identio = new IdentioClient(new IdentioConfig(
baseUrl: 'https://identio.ru',
domainId: 42,
apiToken: $_ENV['IDENTIO_API_TOKEN'],
apiSecret: $_ENV['IDENTIO_API_SECRET'] ?? null,
));
use Identio\Sdk\Enum\SocialProvider;
use Identio\Sdk\Social\NativeSessionStore;
use Identio\Sdk\Social\SocialFlowManager;
session_start();
$flow = new SocialFlowManager(
client: $identio->social,
session: new NativeSessionStore(),
);
$start = $flow->start(SocialProvider::Facebook);
header('Location: ' . $start->authorizeUrl);
exit;