PHPackages                             idoheo/string-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. idoheo/string-generator

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

idoheo/string-generator
=======================

Random string generator library

013PHP

Since Jun 28Pushed 9y agoCompare

[ Source](https://github.com/idoheo/string-generator)[ Packagist](https://packagist.org/packages/idoheo/string-generator)[ RSS](/packages/idoheo-string-generator/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Idoheo String Generator
=======================

[](#idoheo-string-generator)

Simple random string generator library. String generator is defined by interface **\\Idoheo\\StringGenerator\\StringGeneratorInterface**.

Implemented 0-config string generators
--------------------------------------

[](#implemented-0-config-string-generators)

The following string generators are pre implemented:

Generator classGenerated stringIdoheo\\StringGenerator\\StringGenerator\\AlnumCharStringGeneratorAlphanumeric string with upper and lowercase charsIdoheo\\StringGenerator\\StringGenerator\\HexStringGeneratorHexadecimal string generator (lowercase chars)Idoheo\\StringGenerator\\StringGenerator\\NqCharStringGeneratorNQCHAR = %x21 / %x23-5B / %x5D-7EIdoheo\\StringGenerator\\StringGenerator\\NqsCharStringGeneratorNQSCHAR = %x20-21 / %x23-5B / %x5D-7EIdoheo\\StringGenerator\\StringGenerator\\VsCharStringGeneratorVSCHAR = %x20-7EImplemented configurable string generators
------------------------------------------

[](#implemented-configurable-string-generators)

Generator classGenerated stringIdoheo\\StringGenerator\\MappedStringGeneratorString of characters provided in array passed to constructorWriting own generator
---------------------

[](#writing-own-generator)

To help writing your own generator, the following two abstract classes can be extended:

### \\Idoheo\\StringGenerator\\AbstractStringGenerator

[](#idoheostringgeneratorabstractstringgenerator)

For this class you have to implement **::executeStringGeneration()** method. **$length** parameter is already checked to be non-negative integer value, so no checking (and exception throwing) from your part is needed in case of invalid **$length** specified.

### \\Idoheo\\StringGenerator\\SimplifiedAbstractStringGenerator

[](#idoheostringgeneratorsimplifiedabstractstringgenerator)

For this class you have to implement **::getCharacter()** method to return next string character. As this is extending previous mentioned class, no checks on $length variable are needed.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c17c1b105fedb758a812737c0b6a8f695d9d948278a2f6b053e5f9c15e13087f?d=identicon)[unattended\_user](/maintainers/unattended_user)

---

Top Contributors

[![unattended-user](https://avatars.githubusercontent.com/u/5411291?v=4)](https://github.com/unattended-user "unattended-user (2 commits)")

### Embed Badge

![Health badge](/badges/idoheo-string-generator/health.svg)

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

###  Alternatives

[badcow/phrase-generator

Generate an English adjective-noun pair as a phrase (e.g. SubmissiveMonkey).

136.0k](/packages/badcow-phrase-generator)

PHPackages © 2026

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