PHP code example of fdd / think-casbin

1. Go to this page and download the library: Download fdd/think-casbin 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/ */

    

fdd / think-casbin example snippets


use Casbin
//获取全部角色(权限组)
Casbin::getGroupingPolicy();

......