paragonie/random_compat
PHP 5 polyfill for random_bytes() and random_int(), providing secure, cryptographically strong randomness on older PHP versions. Uses the best available system sources and falls back safely, helping apps generate tokens, keys, IDs, and nonces consistently across environments.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| symfony/polyfill-php56 | 0.81 | Symfony polyfill providing PHP 5.6 features for older runtimes. Adds missing functions and constants so modern libraries can run on legacy PHP versions, smoothing compatibility across environments and easing upgrades without changing application code. | 1,558 | 1,560 | 2 | 1M | 0 | 7.9 | 40.6 | MIT | — | |
| valorin/random | 0.81 | Laravel helper for generating random strings, numbers, and values with a clean API. Create secure tokens, readable IDs, and randomized data for testing or seeding, with configurable length, character sets, and formats. | 230 | 231 | 12 | 32K | 0 | 4.0 | 29.6 | MIT | 1 year ago | |
| php-standard-library/secure-random | 0.80 | SecureRandom provides cryptographically secure random bytes and strings in PHP for tokens, passwords, nonces, and IDs. Simple API built on secure system sources, suitable for authentication, session, and security-sensitive workflows. | 0 | 0 | 0 | 3K | 0 | 19.0 | 54.4 | MIT | 1 month ago | |
| arokettu/random-polyfill | 0.80 | — | 9 | 9 | 0 | 47K | 0 | 21.4 | 57.8 | NOASSERTION | 3 months ago | |
| pragmarx/random | 0.79 | Cryptographically secure random generator for PHP: create random strings, integers, bytes, hex, and regex-based patterns with options for size, case, prefixes/suffixes, and raw output. Falls back to Faker (if installed) for rich random data like names and dates. | 71 | 74 | 3 | 138K | 1 | 0.5 | 45.3 | MIT | — | |
| phpcompatibility/phpcompatibility-paragonie | 0.79 | PHP_CodeSniffer rulesets that extend PHPCompatibility to account for Paragonie polyfills (random_compat and sodium_compat), reducing false positives when checking PHP cross-version compatibility. Includes separate RandomCompat and SodiumCompat standards. | 10 | 12 | 2 | 1M | 0 | 11.8 | 59.3 | LGPL-3.0 | 7 months ago | |
| symfony/polyfill-php70 | 0.78 | Symfony Polyfill PHP 7.0 provides compatibility shims for older PHP versions, letting modern PHP 7+ functions and features run on legacy environments. Used by Symfony components and many libraries to ensure consistent behavior across PHP versions. | 3,195 | 3,196 | 7 | 705K | 0 | 16.2 | 32.4 | MIT | — | |
| amzs/random-bundle | 0.77 | — | 0 | 0 | 0 | 0 | 0 | 9.0 | — | MIT | 7 months ago | |
| ircmaxell/random-lib | 0.77 | — | 840 | 870 | 113 | 538K | 19 | 13.6 | 45.7 | MIT | — | |
| phpseclib/phpseclib | 0.76 | MIT-licensed pure-PHP secure communications and crypto library: SSH-2, SFTP, X.509, RSA/DSA/ECDSA/ECDH, Ed25519/Curve25519, big integers, and modern ciphers (AES/ChaCha20, GCM/Poly1305). Composer-ready, LTS branches available. | 5,577 | 5,691 | 908 | 10M | 197 | 91.3 | 77.9 | MIT | 1 month ago | |
| paragonie/sodium_compat | 0.75 | Pure-PHP polyfill for PHP’s Sodium (libsodium) cryptography API. Transparently uses the native sodium extension when available; otherwise falls back to a compatible implementation. v1 supports PHP 5.2+ incl. 32-bit; v2 targets PHP 8.1+ only. | 932 | 937 | 66 | 4M | 0 | 24.8 | 53.9 | ISC | 6 months ago |
How can I help you explore Laravel packages today?