pgaultier/vbx-php
最新稳定版本:1.0.0
Composer 安装命令:
composer require pgaultier/vbx-php
包简介
PHP backport of Visual Basic functions
README 文档
README
VB Backports is a collection of tools we encountered while modernizing old VB5/6 projects We needed to port some of the code to PHP.
Installation
If you use Packagist for installing packages, then you can update your composer.json like this :
{
"require": {
"pgaultier/vbx-php": "*"
}
}
Components backported
Rnd
The PRNG Rnd function available in VB5/6 is not available in PHP.
$vbRandomizer = new Rnd(); $vbRandomizer->rnd(-1); $seed = 1500; $vbRandomizer->randomize($seed); $randomNumber = $vbRandomizer->rnd();
ClsEncrypt
Original VB code created by Michael Ciurescu (CVMichael from vbforums.com)
https://www.vbforums.com/showthread.php?231798-VB-31-Bit-Encryption-function
$clsEncrypt = new ClsEncrypt(); $password = 'secret key'; $string = 'Hello World'; $encryptedBinaryString = $clsEncrypt->rndCryptLevel2($string, $password); $decryptedString = $clsEncrypt->rndDecryptLevel2($encryptedBinaryString, $password); // $decryptedString == 'Hello World'
Contributing
All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch , and send us a pull request.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2024-05-16