PHPackages                             php-standard-library/secure-random - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-standard-library/secure-random

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

php-standard-library/secure-random
==================================

Cryptographically secure random data generation for tokens, passwords, and nonces

6.1.1(3d ago)0683—0%5MITPHPPHP ~8.4.0 || ~8.5.0

Since Mar 17Pushed todayCompare

[ Source](https://github.com/php-standard-library/secure-random)[ Packagist](https://packagist.org/packages/php-standard-library/secure-random)[ Docs](https://php-standard-library.dev)[ RSS](/packages/php-standard-library-secure-random/feed)WikiDiscussions next Synced today

READMEChangelog (2)Dependencies (4)Versions (9)Used By (5)

PHP Standard Library - SecureRandom
===================================

[](#php-standard-library---securerandom)

Cryptographically secure random data generation for tokens, passwords, and nonces.

---

- [Documentation](https://php-standard-library.dev)
- [Contributing](https://github.com/php-standard-library/php-standard-library/blob/next/CONTRIBUTING.md)
- [Create Pull Request](https://github.com/php-standard-library/php-standard-library/pulls)
- [Report an Issue](https://github.com/php-standard-library/php-standard-library/issues)

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance100

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

8

Last Release

3d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8489d7c85bfa7c637b8e13484f3f659652aea0568b6e7f9e66edeb0649b5a2f1?d=identicon)[azjezz](/maintainers/azjezz)

---

Top Contributors

[![azjezz](https://avatars.githubusercontent.com/u/29315886?v=4)](https://github.com/azjezz "azjezz (5 commits)")

---

Tags

randomcryptographysecure-random

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-standard-library-secure-random/health.svg)

```
[![Health](https://phpackages.com/badges/php-standard-library-secure-random/health.svg)](https://phpackages.com/packages/php-standard-library-secure-random)
```

###  Alternatives

[paragonie/random_compat

PHP 5.x polyfill for random\_bytes() and random\_int() from PHP 7

8.2k645.3M357](/packages/paragonie-random-compat)[ircmaxell/random-lib

A Library For Generating Secure Random Numbers

83929.6M107](/packages/ircmaxell-random-lib)[paragonie/random-lib

A Library For Generating Secure Random Numbers

703.3M22](/packages/paragonie-random-lib)[mistic100/randomcolor

Generate attractive random colors

2471.4M6](/packages/mistic100-randomcolor)[nubs/random-name-generator

A library to create interesting, sometimes entertaining, random names.

133659.0k3](/packages/nubs-random-name-generator)[gladcodes/keygen

A fluent PHP random key generator.

119626.8k1](/packages/gladcodes-keygen)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
