PHPackages                             dansvel/random-generator - 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. dansvel/random-generator

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

dansvel/random-generator
========================

PHP random string generator, readable and not

07PHP

Since Nov 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dansvel/random-generator)[ Packagist](https://packagist.org/packages/dansvel/random-generator)[ RSS](/packages/dansvel-random-generator/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP random string generator, readable and not
=============================================

[](#php-random-string-generator-readable-and-not)

This random generator can generate string for human readable or indecipherable.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require dansvel/random-generator
```

Usage
-----

[](#usage)

```
use dansvel\RandomGenerator\Random;
```

### Human readable

[](#human-readable)

It will generate a word using combination of vowels and consonants

```
$composition = [
    3 => ['cvc'],
    4 => ['cvcv', 'vccv', 'vcvc'],
    5 => ['cvcvc', 'cvccv', 'vccvc', 'vcvcv'],
    6 => ['cvcvcv', 'cvccvc', 'vcvcvc', 'vccvcv']
];
```

Example :

```
echo Random::humane(3); // yuk
echo Random::humane(4); // exem
echo Random::humane(5); // idova
echo Random::humane(6); // juplis
```

### Inhumane, indecipherable

[](#inhumane-indecipherable)

It will generate random characters according to the type you want.

Example :

```
echo Random::inhumane(16,'0'); // 5370719465476519
echo Random::inhumane(16,'a'); // kaqotdyeyfauztls
echo Random::inhumane(16,'A'); // IWJLLMBWSTTLCMFM
echo Random::inhumane(16,'aA'); // soMSTjnaiBHkczhx
echo Random::inhumane(16,'0A'); // WQT4I4O2BWHCUAVJ
echo Random::inhumane(16,'0aA'); // aa9LyynlVmfjA4Ht
// you can use combination of 0 a and A in unordered
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48936611?v=4)[dan](/maintainers/dansvel)[@dansvel](https://github.com/dansvel)

---

Top Contributors

[![dansvel](https://avatars.githubusercontent.com/u/48936611?v=4)](https://github.com/dansvel "dansvel (2 commits)")

---

Tags

composer-packagephpphp-package

### Embed Badge

![Health badge](/badges/dansvel-random-generator/health.svg)

```
[![Health](https://phpackages.com/badges/dansvel-random-generator/health.svg)](https://phpackages.com/packages/dansvel-random-generator)
```

PHPackages © 2026

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