PHP code example of myttyy / thinkphp-auth
1. Go to this page and download the library: Download myttyy/thinkphp-auth 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/ */
myttyy / thinkphp-auth example snippets
$auth=new Auth();
$auth->check('规则名称','用户id')
$auth=new Auth();// Auth::instance
$auth->check('规则1,规则2','用户id','and')
" "php": ">=7.1",
"topthink/framework": ">=thinkphp5.1.*" // 或者 "topthink/framework": ">=6.0.*-dev",
},