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

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

nubs/random-name-generator
==========================

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

v2.2.0(5y ago)135680.2k—3.5%39[2 PRs](https://github.com/nubs/random-name-generator/pulls)3MITPHPPHP ~5.6 || ~7.0 || ~8.0

Since May 22Pushed 3y ago4 watchersCompare

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

READMEChangelog (6)Dependencies (4)Versions (9)Used By (3)

Random Name Generator
=====================

[](#random-name-generator)

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

[![Build Status](https://camo.githubusercontent.com/f281c0a59e85ded13f9ec73194d0c908b6fccd85d93a3188cbb0b53616530980/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f6e7562732f72616e646f6d2d6e616d652d67656e657261746f722e7376673f7374796c653d666c6174)](https://travis-ci.org/nubs/random-name-generator)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e32e67c40848755cc0b6496b095d5717b1ec7cf4a4328e1d81865bc6183c0396/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e7562732f72616e646f6d2d6e616d652d67656e657261746f722e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/nubs/random-name-generator/)[![Coverage Status](https://camo.githubusercontent.com/a35771ce35b5300c56774d9c456aef6e9a660d09296436b278d28402c0f948a8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6e7562732f72616e646f6d2d6e616d652d67656e657261746f722f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/nubs/random-name-generator?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/ed010da1f4f2fc105aa7458627dc0e25b645eee3f9d9ba5365ba1308158582da/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e7562732f72616e646f6d2d6e616d652d67656e657261746f722e7376673f7374796c653d666c6174)](https://packagist.org/packages/nubs/random-name-generator)[![Total Downloads](https://camo.githubusercontent.com/548a86197b2d82ea604d13c8e8c0d24c33a21e5ff636a838ea7cd31a511de014/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e7562732f72616e646f6d2d6e616d652d67656e657261746f722e7376673f7374796c653d666c6174)](https://packagist.org/packages/nubs/random-name-generator)[![License](https://camo.githubusercontent.com/fe7640de5d617f0d472269fd336c52d87f49ec18177451b992fef3318674698c/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e7562732f72616e646f6d2d6e616d652d67656e657261746f722e7376673f7374796c653d666c6174)](https://packagist.org/packages/nubs/random-name-generator)

[![Dependency Status](https://camo.githubusercontent.com/56641008c8e8c9d6a534403bf50b4b827f9085fb73fc2f7683555c7f64acc3d9/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533376435363138313463313538353561613030303031392f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/537d561814c15855aa000019)

Requirements
------------

[](#requirements)

This library requires PHP 5.6, or newer.

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

[](#installation)

This package uses [composer](https://getcomposer.org) so you can just add `nubs/random-name-generator` as a dependency to your `composer.json` file or execute the following command:

```
composer require nubs/random-name-generator
```

Generators
----------

[](#generators)

### All

[](#all)

The "all" generator will utilize all other configured generators to generate random names. It will select from the list of generators randomly and then use them to generate a random name using their functionality.

#### Usage

[](#usage)

```
$generator = \Nubs\RandomNameGenerator\All::create();
echo $generator->getName();
```

Alternatively, if you want to configure/build the generators to use instead of using all of the available generators, you can construct them yourself:

```
$generator = new \Nubs\RandomNameGenerator\All(
    [
        new \Nubs\RandomNameGenerator\Alliteration(),
        new \Nubs\RandomNameGenerator\Vgng()
    ]
);
```

### Video Game Names

[](#video-game-names)

The video game name generator is based off of [prior](http://videogamena.me/)[art](https://github.com/nullpuppy/vgng). It will generate unique names based off of "typical" video games.

#### Examples

[](#examples)

- *Kamikaze Bubblegum Warrior*
- *Rockin' Valkyrie Gaiden*
- *Neurotic Jackhammer Detective*
- *My Little Mountain Climber Conflict*
- *Small-Time Princess vs. The Space Mutants*

You can also use [this web example](http://sam.sbat.com/) to see more example video game names generated by this library.

#### Usage

[](#usage-1)

```
$generator = new \Nubs\RandomNameGenerator\Vgng();
echo $generator->getName();
```

Alliterative Names
------------------

[](#alliterative-names)

The alliteration name generator is based off of a list of [adjectives](http://grammar.yourdictionary.com/parts-of-speech/adjectives/list-of-adjective-words.html)and a list of [animals](https://animalcorner.co.uk/animals/).

#### Examples

[](#examples-1)

- *Agreeable Anaconda*
- *Disturbed Duck*
- *Misty Meerkat*
- *Prickly Pig*

#### Usage

[](#usage-2)

```
$generator = new \Nubs\RandomNameGenerator\Alliteration();
echo $generator->getName();
```

License
-------

[](#license)

random-name-generator is licensed under the MIT license. See [LICENSE](LICENSE) for the full license text.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity55

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 93.5% 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 ~485 days

Recently: every ~498 days

Total

6

Last Release

1952d ago

Major Versions

v0.2.0 → v1.0.02016-01-12

v1.0.0 → v2.0.02016-09-15

PHP version history (5 changes)v0.1.0PHP &gt;=5.3.2

v0.2.0PHP ~5.4 || ~7.0

v1.0.0PHP ~5.5 || ~7.0

v2.0.0PHP ~5.6 || ~7.0

v2.2.0PHP ~5.6 || ~7.0 || ~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/43e7568db49cb140fe4deef1e585de0874e2a962a1140662003a5c070f536879?d=identicon)[nubs](/maintainers/nubs)

---

Top Contributors

[![nubs](https://avatars.githubusercontent.com/u/57673?v=4)](https://github.com/nubs "nubs (72 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")[![chadicus](https://avatars.githubusercontent.com/u/1182337?v=4)](https://github.com/chadicus "chadicus (1 commits)")[![cmendes0101](https://avatars.githubusercontent.com/u/753513?v=4)](https://github.com/cmendes0101 "cmendes0101 (1 commits)")[![jaketoolson](https://avatars.githubusercontent.com/u/612332?v=4)](https://github.com/jaketoolson "jaketoolson (1 commits)")

---

Tags

randomgeneratorvideo gamealliteration

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[mistic100/randomcolor

Generate attractive random colors

2431.4M6](/packages/mistic100-randomcolor)[ihor/nspl

Non-standard PHP library (NSPL) - functional primitives toolbox and more

381368.5k](/packages/ihor-nspl)[gladcodes/keygen

A fluent PHP random key generator.

119668.9k2](/packages/gladcodes-keygen)[markrogoyski/itertools-php

Iteration tools for PHP

14911.3k](/packages/markrogoyski-itertools-php)[delight-im/random

The most convenient way to securely generate anything random in PHP

2345.4k](/packages/delight-im-random)

PHPackages © 2026

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