定制 pgaultier/vbx-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-05-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固