2026-04-13 19:14:16 +03:00
2026-04-13 19:14:16 +03:00
2026-04-13 18:28:51 +03:00
2026-04-13 18:28:51 +03:00
2025-09-10 20:37:21 +03:00
2024-10-10 17:49:00 +03:00
2026-04-13 18:38:34 +03:00
2025-09-10 20:28:08 +03:00
2024-07-16 01:56:23 +03:00
2022-07-23 00:14:55 +03:00
2026-04-13 18:47:31 +03:00

Random Extension Polyfill for PHP

PHP License Gitlab pipeline status Codecov Packagist Downloads

This is a polyfill for the new ext-random extension that was released with PHP 8.2.

Requirements

  • PHP 7.1
  • GMP extension is strongly recommended on PHP 7

Installation

composer require 'arokettu/random-polyfill'

Compatibility

The library aims to be compatible with ext-random as released in PHP 8.2.0 and subsequent patch releases.

Documentation

Random Extension

Read the official PHP doc: https://www.php.net/manual/en/book.random.php

The Polyfill

Read full documentation here: https://sandfox.dev/php/random-polyfill.html

Also on Read the Docs: https://php-random-polyfill.readthedocs.io/

Support

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

License

The library is available as open source under the terms of the 3-Clause BSD License.

Description
Random Extension Polyfill for PHP
Readme 850 KiB
1.0.6 Latest
2026-04-13 15:38:34 +00:00
Languages
PHP 100%