An open API service indexing awesome lists of open source software.

https://github.com/arokettu/php-random-polyfill

Random Extension Polyfill for PHP
https://github.com/arokettu/php-random-polyfill

php polyfill random

Last synced: about 1 year ago
JSON representation

Random Extension Polyfill for PHP

Awesome Lists containing this project

README

          

# Random Extension Polyfill for PHP

[![PHP]][Packagist]
[![License]][COPYING]
[![Gitlab pipeline status]](https://gitlab.com/sandfox/php-random-polyfill/-/pipelines)
[![Codecov]](https://codecov.io/gl/sandfox/php-random-polyfill/)
[![Packagist Downloads]][Packagist]

[PHP]: https://img.shields.io/packagist/php-v/arokettu/random-polyfill/dev-master.svg?style=flat-square
[License]: https://img.shields.io/packagist/l/arokettu/random-polyfill.svg?style=flat-square
[Gitlab pipeline status]: https://img.shields.io/gitlab/pipeline/sandfox/php-random-polyfill/master.svg?style=flat-square
[Codecov]: https://img.shields.io/codecov/c/gl/sandfox/php-random-polyfill?style=flat-square
[Packagist Downloads]: https://img.shields.io/packagist/dm/arokettu/random-polyfill?style=flat-square

[Packagist]: https://packagist.org/packages/arokettu/random-polyfill

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

```bash
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:

Also on Read the Docs:

## Support

Please file issues on our main repo at GitHub:

Feel free to ask any questions in our room on Gitter:

## License

The library is available as open source under the terms of the [3-Clause BSD License].
See [COPYING.adoc][COPYING] for additional licenses.

[3-Clause BSD License]: LICENSE.md
[COPYING]: COPYING.adoc