PHPackages                             jfoza/php-random-string - 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. jfoza/php-random-string

ActiveLibrary

jfoza/php-random-string
=======================

Library to generate random strings using the PHP language.

v1.0.0(1y ago)05MITPHPPHP ^8.0

Since Sep 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jfoza/jfoza-php-random-string)[ Packagist](https://packagist.org/packages/jfoza/php-random-string)[ RSS](/packages/jfoza-php-random-string/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

### Library to generate random strings using the PHP language.

[](#library-to-generate-random-strings-using-the-php-language)

#### Composer

[](#composer)

```
$ composer require jfoza/php-random-string

```

#### Examples

[](#examples)

```
use JFoza\PhpRandomString\RandomStringHelper;

$basicString = RandomStringHelper::basicGenerate();
$alphaString = RandomStringHelper::alphaGenerate();
$alnumString = RandomStringHelper::alnumGenerate();
$strings = RandomStringHelper::stringsGenerate();
$numericString = RandomStringHelper::numericGenerate();
$noZeroString = RandomStringHelper::noZeroGenerate();
$md5String = RandomStringHelper::md5Generate();
$sha1String = RandomStringHelper::sha1Generate();

echo $numericString;
echo $alphaString;
echo $alnumString;
echo $strings;
echo $numericString;
echo $noZeroString;
echo $md5String;
echo $sha1String;
```

\*Improvements and feedback are welcome ;)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

595d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/416e7652c1e77af6f4eefa82584832cb9e18e30d9316cec0b199d5ecab795d1b?d=identicon)[jfoza](/maintainers/jfoza)

### Embed Badge

![Health badge](/badges/jfoza-php-random-string/health.svg)

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

PHPackages © 2026

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