slyue/project-validation-client

There is no license information available for the latest version (0.0.6) of this package.

0.0.6 2024-02-17 04:34 UTC

This package is auto-updated.

Last update: 2024-04-17 04:56:45 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);

大功告成