Last updated 5 years ago
Was this helpful?
原文: 翻译:小虾米(QQ:509129)
您有多种方法来安装Twig。
通过Composer安装(推荐)
安装并运行以下命令获取最新版本:
composer require twig/twig:~2.0
从发布的tar包安装
从下载最新的tar包
验证tarball的完整性
解压压缩文件
将文件移动到项目中的某个地方
安装开发版本
git clone git://github.com/twigphp/Twig.git