PHPackages                             pgaultier/vbx-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pgaultier/vbx-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pgaultier/vbx-php
=================

PHP backport of Visual Basic functions

1.0.0(2y ago)06BSD-3-ClausePHPPHP &gt;=8.0

Since May 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pgaultier/vbx-php)[ Packagist](https://packagist.org/packages/pgaultier/vbx-php)[ RSS](/packages/pgaultier-vbx-php/feed)WikiDiscussions devel Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

VB Backports
============

[](#vb-backports)

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
------------

[](#installation)

If you use Packagist for installing packages, then you can update your composer.json like this :

```
{
    "require": {
        "pgaultier/vbx-php": "*"
    }
}
```

Components backported
---------------------

[](#components-backported)

### Rnd

[](#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

[](#clsencrypt)

Original VB code created by Michael Ciurescu (CVMichael from vbforums.com)

```
$clsEncrypt = new ClsEncrypt();
$password = 'secret key';
$string = 'Hello World';

$encryptedBinaryString = $clsEncrypt->rndCryptLevel2($string, $password);

$decryptedString = $clsEncrypt->rndDecryptLevel2($encryptedBinaryString, $password);
// $decryptedString == 'Hello World'
```

Contributing
------------

[](#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 ](http://nvie.com/posts/a-successful-git-branching-model/), and send us a pull request.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

732d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/545714?v=4)[pgaultier](/maintainers/pgaultier)[@pgaultier](https://github.com/pgaultier)

---

Tags

phpvbbackportvisual basic

### Embed Badge

![Health badge](/badges/pgaultier-vbx-php/health.svg)

```
[![Health](https://phpackages.com/badges/pgaultier-vbx-php/health.svg)](https://phpackages.com/packages/pgaultier-vbx-php)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
