nepster-web / gambling-tech
Gambling Algorithms for Certification.
Installs: 2 040
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: ^7.4|^8.0
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^v2.19
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-11-10 01:44:21 UTC
README
Gambling Tech on PHP
Introduction
Gambling Tech - is a library that provides certified casino algorithms. (for example: RNG, PFS, Fisher Yates, etc).
Accredited Laboratory for Online Gaming Certification and Quality Assurance. Testing iTech Labs is one of the leading accredited testing laboratories for online gaming worldwide.
Requirements
You'll need at least PHP 7.4 (it works best with PHP 8).
Installation
The preferred way to install this extension is through composer:
Either run
php composer.phar require --prefer-dist nepster-web/gambling-tech
or add
"nepster-web/gambling-tech": "*"
💻 Basic Usage
Random generation:
use Gambling\Tech\Random; Random::getBytes(16); // 3ö1\x18&U\x0Fµòð$ä&ã\x05\x06 Random::getInteger(0, 100); // 7 Random::getBoolean(); // false Random::getFloat(); // 0.57746288525196 Random::getString(16); // 3Q989ujqa3CAZl0c
Shuffling:
use Gambling\Tech\FisherYatesShuffle; $cards = [0, 1, 2, 3, 4, 5, 6, 7]; $shuffled = (new FisherYatesShuffle())($cards); $shuffled; // [7, 2, 1, 5, 4, 6, 0, 3]
Read more about other algorithms in the documentation.
Testing
To run the tests locally, in the root directory execute below
./vendor/bin/phpunit
📖 Documentation
See the official guide.
📚 Resources
📰 Changelog
Detailed changes for each release are documented in the CHANGELOG.md.
🔒 License
See the MIT License file for license rights and limitations (MIT).