dhii / placeholder-template-abstract
用于处理使用占位符的模板的抽象功能。
v0.1-alpha5
2018-06-04 15:21 UTC
Requires
- php: ^5.4 | ^7.0
Requires (Dev)
- codeclimate/php-test-reporter: <=0.3.2
- dhii/php-cs-fixer-config: ^0.1
- dhii/stringable-interface: ^0.1
- phpunit/phpunit: ^4.8
- psr/container: ^1.0
- ptrofimov/xpmock: ^1.1
Suggests
- dhii/container-helper-base: For standardized container retrieval
- dhii/exception: For exceptions and exception factories
- dhii/i18n-helper-base: For internationalization functionality
- dhii/normalization-helper-base: For normalization of strings and other simple types
- dhii/regex-abstract: For RegEx functionality, such as quoting and matching
- dhii/stringable-helper-base: For string replacement functionality
This package is auto-updated.
Last update: 2024-09-07 04:09:20 UTC
README
详细信息
用于处理使用占位符的模板的抽象功能。
特性
ReplaceTokensCapableTrait
- 根据标记的开始和结束,用容器中对应的值替换字符串中的标记。允许将标记键规范化为容器中使用的格式。NormalizeTokenDelimiterCapableTrait
- 规范化标记分隔符,如标记开始和结束,确保值类型正确。TokenStartAwareTrait
- 意识到标记开始分隔符。TokenEndAwareTrait
- 意识到标记结束分隔符。DefaultPlaceholderValueAwareTrait
- 意识到默认占位符值。PlaceholderTemplateAwareCapableTrait
- 意识到占位符模板源。