PHP code example of lan-software / lancore-client
1. Go to this page and download the library: Download lan-software/lancore-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/ */
lan-software / lancore-client example snippets
use LanSoftware\LanCoreClient\LanCoreClient;
$client = app(LanCoreClient::class);
// Resolve a user by LanCore id:
$user = $client->user($lancoreUserId);
// Exchange an SSO code:
$user = $client->exchangeCode($authorizationCode);
// (LanEntrance only) Validate a signed ticket token:
$result = $client->entrance()->validate($plainToken);