PHP code example of telabotanica / tb-auth-php
1. Go to this page and download the library: Download telabotanica/tb-auth-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/ */
telabotanica / tb-auth-php example snippets
$config = array(
"annuaireURL" => "https://www.tela-botanica.org/uri-of-sso-service",
"admins" => array(
"[email protected]",
"[email protected]"
),
"adminRoles" => array(
"tb_my-application_admin"
)
);
$auth = new AuthTB($config);
$userData = $auth->getUser();
composer install telabotanica/tb-auth-php