PHP code example of suframe / think-admin
1. Go to this page and download the library: Download suframe/think-admin 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/ */
suframe / think-admin example snippets
php think run -H 0.0.0.0
// 指令定义
'commands' => [
\suframe\thinkAdmin\command\thinkAdminCURD::class
],
# 生成模型
php think make:model News
# 生成curl
php think curd news
return [
...
'subscribe' => [
\suframe\thinkAdmin\subscribe\DebugSubscribe::class,
]
$response = $http->run();
//在获取到response对象后,添加下面这行
event('HttpSend', $response);