glue-agency / craft-hash
用于散列的Twig过滤器。
1.0.0
2019-09-04 14:20 UTC
Requires
- craftcms/cms: ^3.0.0-RC1
This package is not auto-updated.
Last update: 2024-09-27 13:25:13 UTC
README
用于散列的Twig过滤器。
要求
此插件需要Craft CMS 3.0.0-beta.23或更高版本。
安装
要安装此插件,请按照以下说明操作。
-
打开您的终端并转到您的Craft项目
cd /path/to/project -
然后告诉Composer加载插件
composer require glue-agency/craft-hash -
在控制面板中,转到设置 → 插件,并点击Craft-Hash的“安装”按钮。
使用方法
{{ hash(String, Algorithm) }}
String要散列的字符串(不必要,默认为random_int(0, getrandmax()))Algorithm用于散列的算法(不必要,默认为 'md5')
有关可用算法的更多信息,请访问: https://php.ac.cn/manual/en/function.hash-algos.php