PHP code example of chocofamilyme / authorizers
1. Go to this page and download the library: Download chocofamilyme/authorizers 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/ */
chocofamilyme / authorizers example snippets
$rbac = new \Chocofamilyme\Authorizers\Rbac('host');
$rbac->authorizeByTerminal(123, 'permission', 123);
$rbac = new \Chocofamilyme\Authorizers\Rbac('host');
$rbac->authorizeByTeam(123, 'permission', 'team_name');