slyue / project-validation-client

此包的最新版本(0.0.6)没有提供许可证信息。

0.0.6 2024-02-17 04:34 UTC

This package is auto-updated.

Last update: 2024-09-17 06:02:06 UTC


README

安装方式

  1. composer require slyue/project-validation-client 安装验证扩展包
  2. 在index.php的类自动加载机制之后,或全局中间件等位置,写入以下代码 (new \Slyue\ProjectValidationClient\Main())->setNumber('230315')->check();
  3. 上面的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);

大功告成