2022-07-23 02:52:56 +00:00
|
|
|
# Random Extension Polyfill for PHP
|
2022-07-22 01:36:46 +00:00
|
|
|
|
2022-09-01 22:29:48 +00:00
|
|
|
[](https://packagist.org/packages/arokettu/random-polyfill)
|
2023-02-18 07:41:11 +00:00
|
|
|
[][COPYING]
|
2022-07-23 06:47:52 +00:00
|
|
|
[](https://gitlab.com/sandfox/php-random-polyfill/-/pipelines)
|
|
|
|
[](https://codecov.io/gl/sandfox/php-random-polyfill/)
|
|
|
|
|
2022-12-08 19:35:45 +00:00
|
|
|
This is a polyfill for the new `ext-random` extension that was released with PHP 8.2.
|
2022-07-23 02:52:56 +00:00
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
* PHP 7.1
|
2022-09-03 12:41:49 +00:00
|
|
|
* GMP extension is strongly recommended on PHP 7
|
2022-07-23 02:52:56 +00:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```bash
|
|
|
|
composer require 'arokettu/random-polyfill'
|
|
|
|
```
|
|
|
|
|
|
|
|
## Compatibility
|
|
|
|
|
2022-09-02 18:55:09 +00:00
|
|
|
The library aims to be compatible with `ext-random` as released in PHP 8.2.0 and subsequent patch releases.
|
2022-07-23 02:52:56 +00:00
|
|
|
|
2022-07-23 03:52:35 +00:00
|
|
|
## Documentation
|
|
|
|
|
2022-12-08 19:35:45 +00:00
|
|
|
### Random Extension
|
|
|
|
|
|
|
|
Read the official PHP doc: https://www.php.net/manual/en/book.random.php
|
|
|
|
|
|
|
|
### The Polyfill
|
|
|
|
|
2022-07-23 03:52:35 +00:00
|
|
|
Read full documentation here: <https://sandfox.dev/php/random-polyfill.html>
|
|
|
|
|
|
|
|
Also on Read the Docs: <https://php-random-polyfill.readthedocs.io/>
|
|
|
|
|
|
|
|
## Support
|
|
|
|
|
2022-11-10 21:21:43 +00:00
|
|
|
Please file issues on our main repo at GitHub: <https://github.com/arokettu/php-random-polyfill/issues>
|
2022-07-23 03:52:35 +00:00
|
|
|
|
2022-07-23 02:52:56 +00:00
|
|
|
## License
|
|
|
|
|
|
|
|
The library is available as open source under the terms of the [3-Clause BSD License].
|
2022-07-23 03:11:50 +00:00
|
|
|
See [COPYING.adoc][COPYING] for additional licenses.
|
2022-07-23 02:52:56 +00:00
|
|
|
|
2023-02-18 07:41:11 +00:00
|
|
|
[3-Clause BSD License]: LICENSE.md
|
2022-07-23 03:11:50 +00:00
|
|
|
[COPYING]: COPYING.adoc
|