composer依赖管理安装
topthink/think-helper助手包的使用
网站根目录下执行
composer require topthink/think-helper=~1.0
打开vendor/topthink/think-helper/composer.json,找到命名空间的配置
student.php
<?php
use think\helper\Time;
public function test()
{
var_dump(Time::today());
}
卸载依赖包
composer remove topthink/think-helper