This is a polyfill for the new ext-random
extension that was released with PHP 8.2.
- PHP 7.1
- GMP extension is strongly recommended on PHP 7
composer require 'arokettu/random-polyfill'
The library aims to be compatible with ext-random
as released in PHP 8.2.0 and subsequent patch releases.
Read the official PHP doc: https://www.php.net/manual/en/book.random.php
Read full documentation here: https://sandfox.dev/php/random-polyfill.html
Also on Read the Docs: https://php-random-polyfill.readthedocs.io/
Please file issues on our main repo at GitHub: https://github.com/arokettu/php-random-polyfill/issues
Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community
The library is available as open source under the terms of the 3-Clause BSD License. See COPYING.adoc for additional licenses.