{"id":16296767,"url":"https://github.com/pgaultier/vbx-php","last_synced_at":"2025-07-22T09:33:00.492Z","repository":{"id":240067201,"uuid":"801598482","full_name":"pgaultier/vbx-php","owner":"pgaultier","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-16T14:42:21.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"devel","last_synced_at":"2025-06-09T06:05:19.754Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgaultier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-16T14:40:40.000Z","updated_at":"2024-05-16T14:41:19.000Z","dependencies_parsed_at":"2024-05-16T15:32:54.259Z","dependency_job_id":"4d8f38e6-b001-4a18-9d95-baafd024b44d","html_url":"https://github.com/pgaultier/vbx-php","commit_stats":null,"previous_names":["pgaultier/vbx-php"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pgaultier/vbx-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaultier%2Fvbx-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaultier%2Fvbx-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaultier%2Fvbx-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaultier%2Fvbx-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgaultier","download_url":"https://codeload.github.com/pgaultier/vbx-php/tar.gz/refs/heads/devel","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaultier%2Fvbx-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265297547,"owners_count":23742588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T20:23:55.679Z","updated_at":"2025-07-22T09:32:58.934Z","avatar_url":"https://github.com/pgaultier.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"VB Backports\n============\n\nVB Backports is a collection of tools we encountered while modernizing old VB5/6 projects \nWe needed to port some of the code to PHP.\n\nInstallation\n------------\n\nIf you use Packagist for installing packages, then you can update your composer.json like this :\n\n``` json\n{\n    \"require\": {\n        \"pgaultier/vbx-php\": \"*\"\n    }\n}\n```\n\nComponents backported\n---------------------\n\n### Rnd\n\nThe PRNG Rnd function available in VB5/6 is not available in PHP.\n\n``` php\n$vbRandomizer = new Rnd();\n\n$vbRandomizer-\u003ernd(-1);\n$seed = 1500;\n$vbRandomizer-\u003erandomize($seed);\n\n$randomNumber = $vbRandomizer-\u003ernd();\n```\n\n### ClsEncrypt\n\nOriginal VB code created by Michael Ciurescu (CVMichael from vbforums.com)\n\nhttps://www.vbforums.com/showthread.php?231798-VB-31-Bit-Encryption-function\n\n```php \n$clsEncrypt = new ClsEncrypt();\n$password = 'secret key';\n$string = 'Hello World';\n\n$encryptedBinaryString = $clsEncrypt-\u003erndCryptLevel2($string, $password);\n\n$decryptedString = $clsEncrypt-\u003erndDecryptLevel2($encryptedBinaryString, $password);\n// $decryptedString == 'Hello World'\n```\n\nContributing\n------------\n\nAll code contributions - including those of people having commit access -\nmust go through a pull request and approved by a core developer before being\nmerged. This is to ensure proper review of all the code.\n\nFork the project, create a [feature branch ](http://nvie.com/posts/a-successful-git-branching-model/), and send us a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaultier%2Fvbx-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgaultier%2Fvbx-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaultier%2Fvbx-php/lists"}