No description
Find a file
2025-09-10 20:53:44 +03:00
debug Import random/randomizer tests 2022-09-14 21:48:03 +03:00
docs Bitbucket -> Codeberg 2025-06-09 03:07:43 +03:00
src Use "unsigned" functions directly, remove lib.php 2025-09-10 20:50:23 +03:00
tests Use "unsigned" functions directly, remove lib.php 2025-09-10 20:50:23 +03:00
.gitattributes Update configs from templates 2023-08-18 22:46:33 +03:00
.gitignore I always forget which one I use 2022-07-31 09:51:37 +03:00
.gitlab-ci.yml Drop 7.1/7.2 build 2025-09-10 20:37:21 +03:00
.readthedocs.yaml Update from templates 2024-10-10 17:49:00 +03:00
CHANGELOG.md Changelog for 1.0.5 2025-09-10 20:53:44 +03:00
composer.json Use "unsigned" functions directly, remove lib.php 2025-09-10 20:50:23 +03:00
COPYING.adoc Fix PHP version in the license 2025-04-01 03:04:21 +03:00
LICENSE.md Make license detectable by github 2023-02-18 09:39:18 +02:00
phpcs.xml Update code style definition 2025-09-10 20:28:08 +03:00
phpunit.xml.dist Catch deprecations 2024-07-16 01:56:23 +03:00
psalm.xml Psalm config and fixes 2022-07-23 00:14:55 +03:00
README.md Use per month 2024-03-04 21:35:38 +02: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. See COPYING.adoc for additional licenses.