slyue / project-validation-client
There is no license information available for the latest version (0.0.7) of this package.
0.0.7
2024-12-10 08:19 UTC
Requires
- guzzlehttp/guzzle: ^7.5
README
安装方式
composer require slyue/project-validation-client
安装验证扩展包- 在index.php的类自动加载机制以后,或全局中间件等位置,写以下代码
(new \Slyue\ProjectValidationClient\Main())->setNumber('230315')->check();
- 上面的
setNumber
换成管理后台你自己的项目编号
使用示例
ThinkPHP
- index.php入口文件中添加代码
require DIR . '/../vendor/autoload.php';
// 执行HTTP应用并响应 $http = (new App())->http;
$response = $http->run(); //此处插入代码 (new \Slyue\ProjectValidationClient\Main())->setNumber('230315')->check(); $response->send();
$http->end($response);
大功告成