https://github.com/nepster-web/gambling-tech
Certified casino algorithms
https://github.com/nepster-web/gambling-tech
gambling gambling-game php rng
Last synced: 6 months ago
JSON representation
Certified casino algorithms
- Host: GitHub
- URL: https://github.com/nepster-web/gambling-tech
- Owner: nepster-web
- License: mit
- Created: 2021-10-05T09:51:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-09T19:58:15.000Z (about 3 years ago)
- Last Synced: 2024-05-04T06:42:01.102Z (about 1 year ago)
- Topics: gambling, gambling-game, php, rng
- Language: PHP
- Homepage:
- Size: 47.9 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Gambling Tech on PHP
Introduction
------------**Gambling Tech** - is a library that provides certified casino algorithms.
(for example: [RNG](https://en.wikipedia.org/wiki/Random_number_generation),
[PFS](https://www.provably.com),
[Fisher Yates](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle), 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.[More information](https://itechlabs.com)
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](http://getcomposer.org/download/):
Either run
```
php composer.phar require --prefer-dist nepster-web/gambling-tech
```or add
```
"nepster-web/gambling-tech": "*"
```:computer: Basic Usage
----------------------**Random generation:**
```php
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:**
```php
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](./docs/guide/algorithms.md).
### Testing
To run the tests locally, in the root directory execute below
```
./vendor/bin/phpunit
```---------------------------------
## :book: Documentation
See [the official guide](./docs/guide/README.md).
## :books: Resources
* [Documentation](./docs/guide/README.md)
* [Issue Tracker](https://github.com/nepster-web/gambling-tech/issues)## :newspaper: Changelog
Detailed changes for each release are documented in the [CHANGELOG.md](./CHANGELOG.md).
## :lock: License
See the [MIT License](LICENSE) file for license rights and limitations (MIT).