axy / random
Generates pseudo-random
Installs: 21 259
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=8.1
- axy/binary: ~0.2.0
Requires (Dev)
- phpunit/phpunit: ~10.0.15
- squizlabs/php_codesniffer: =3.7.1
This package is auto-updated.
Last update: 2024-12-16 18:16:44 UTC
README
Random sequence generation in PHP. At the moment this package doesn't make much sense. Used by some other packages. In old PHP versions used different methods, now uses only random_bytes().
Documentation
use axy\random\src\Random; $string = Random::createString(10); // creates a random string of 10 chars $bytes = Random::createBytes(100); // creates an array of 100 integers (0-255)