下载:
在项目路径下运行cmd
打上composer require smarty/smarty
回车
composer会自动开始下载
导入
在文件中用require引入即可
require 'vendor/autoload.php';
$smarty = new Smarty();