talex/helpers 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-23