prnewsteam / smarty
Smarty - 编译PHP模板引擎
3.1.40
2021-08-30 12:44 UTC
Requires
- php: >=5.2
Requires (Dev)
- phpunit/phpunit: ^7.5 || ^6.5 || ^5.7 || ^4.8
- smarty/smarty-lexer: ^3.1
- dev-master / 3.1.x-dev
- 3.1.40
- v3.1.39
- v3.1.38
- v3.1.37.1
- v3.1.37
- v3.1.36
- v3.1.35
- v3.1.34
- v3.1.33
- v3.1.32
- v3.1.31
- v3.1.30
- v3.1.29
- v3.1.28
- v3.1.27
- v3.1.26
- v3.1.25
- v3.1.24
- v3.1.23
- v3.1.21
- v3.1.20
- v3.1.19
- v3.1.18
- v3.1.17
- v3.1.16
- v3.1.15
- v3.1.14
- v3.1.13
- v3.1.12
- v3.1.11
- v2.6.31
- v2.6.30
- v2.6.29
- v2.6.28
- v2.6.27
- v2.6.26
- v2.6.25
- v2.6.24
- dev-m-haritonov-escape
- dev-feature/php8-support
- dev-feature/do_not_use_at_suppression_for_default_modifier
- dev-bugfix/inline_include_string_template_crash
- dev-experimental_compile_check_optimization
- dev-support/3.1
- dev-bugfix/fix-lexer-sources
- dev-xorti-fix-error-handler-function
- dev-feauture/run_unit_tests_for_php_5
- dev-bugfix/support_https_in_fetch
- dev-Smarty2
This package is auto-updated.
Last update: 2024-09-29 05:56:52 UTC
README
文档
有关文档,请参阅 www.smarty.net/docs/en/
要求
Smarty 可以在 PHP 5.2 到 PHP 7.4 之间运行。
分发仓库
Smarty 3.1.28 引入了运行时模板继承。
阅读 NEW_FEATURES 和 INHERITANCE_RELEASE_NOTES 文件,了解 Smarty 3.1 功能的最新扩展。
Smarty 版本 3.1.11 或更高版本现在可在 GitHub 上找到,并且可以使用 Composer 安装。
"smarty/smarty" 包将在 libs/.... 子文件夹中开始。
要获取 Smarty 3.1 的最新稳定版本,请使用
"require": { "smarty/smarty": "~3.1" }
在你的 composer.json 文件中。
要获取 trunk 版本,请使用
"require": { "smarty/smarty": "~3.1@dev" }
要获取特定版本,请使用类似以下内容
"require": { "smarty/smarty": "3.1.19" }
PHPUnit 测试可以通过相应的 composer 条目进行安装
"require": { "smarty/smarty-phpunit": "3.1.19" }
类似地也适用于词法分析器/解析器生成器。
"require": { "smarty/smarty-lexer": "3.1.19" }
或者您可以使用
"require": { "smarty/smarty-dev": "3.1.19" }
这是一个安装所有 3 个包的包装器。
Composer 还可以用于 Smarty2 版本 2.6.24 到 2.6.30。