1. Go to this page and download the library: Download mozhuilungdsuo/iam-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/ */
use Nagaland\IamClient\Facades\NagalandIam;
$user = NagalandIam::user();
$iamUser = NagalandIam::iamUser();
$govtEmpProfile = NagalandIam::govtEmpProfile();
$roles = NagalandIam::roles();
$permissions = NagalandIam::permissions();
if (NagalandIam::hasPermission('crs.birth.approve')) {
// ...
}
NagalandIam::setIamActive(true); // activate the current local user
NagalandIam::setIamActive(false); // deactivate the current local user
$active = NagalandIam::isIamActive();