talex/helpers
最新稳定版本:1.0
Composer 安装命令:
composer require talex/helpers
包简介
Useful classes for the project
README 文档
README
To install talex/helpers run the command:
composer require talex/helpers
use Talex\Helpers\Text; $string = "example" $text = new Text($string); echo $text->truncate()->getText();
Usage Hash class
use Talex\Helpers\Hash; $plain_txt = "This is my plain text"; echo "Plain Text =" .$plain_txt. "\n"; $hash = new Hash($plain_txt); $hash->setSecretKey("my secret key"); $hash->setSecretIV("my secret IV"); $encrypted_txt = $hash->encrypt(); echo "Encrypted Text = " .$encrypted_txt. "\n"; $decrypted_txt = $hash->decrypt($encrypted_txt); echo "Decrypted Text =" .$decrypted_txt. "\n"; if ( $plain_txt === $decrypted_txt ) echo "SUCCESS"; else echo "FAILED"; echo "\n";
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-23