composer require smarty/smarty
下载完成后
引入vendor/autoload.php自动加载文件
这样就可以直接使用smarty类了
$smarty = new Smarty();