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
- Host: GitHub
- URL: https://github.com/arokettu/php-random-polyfill
- Owner: arokettu
- License: bsd-3-clause
- Created: 2022-07-22T01:35:21.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-20T03:56:31.000Z (over 1 year ago)
- Last Synced: 2025-03-27T10:12:02.821Z (over 1 year ago)
- Topics: php, polyfill, random
- Language: PHP
- Homepage:
- Size: 352 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: COPYING.adoc
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