PHPackages                             thearkaid/simple-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. thearkaid/simple-name-generator

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

thearkaid/simple-name-generator
===============================

Generate a random name that truely random

01

Since Jul 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/TheArKaID/simple-name-generator)[ Packagist](https://packagist.org/packages/thearkaid/simple-name-generator)[ RSS](/packages/thearkaid-simple-name-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple Name Generator
=====================

[](#simple-name-generator)

Introduction
------------

[](#introduction)

Welcome to the Simple Name Generator! This PHP class generates truely random given names, surnames, and full names based on specified lengths. The names are constructed using a pattern of consonants and vowels to ensure they resemble real names.

\*Well it's not even a name, just a random word generator based on vowels and consonants :p.

The Logic
---------

[](#the-logic)

The `SimpleNameGenerator` class uses a simple yet effective logic to generate names:

1. **Vowels and Consonants**: The generator has predefined sets of vowels (`a, e, i, o, u`) and consonants (`b, c, d, f, g, h, j, k, l, m, n, p, q, r, s, t, v, w, x, y, z`).
2. **Pattern Generation**: Based on the specified length, the class creates a pattern of consonants and vowels:

    - Minimum length is 3. If a length less than 3 is specified, it defaults to 3.
    - If the length is exactly 3, the pattern is `CVC`.
    - For lengths greater than 3, the pattern is extended by repeating `VC`:
        - If the length is even, the pattern continues as `CVCV...`.
        - If the length is odd, the pattern continues as `CVC...V`.
3. **Random String Generation**: The class uses the generated pattern to construct a name by randomly selecting vowels and consonants from their respective sets.

How to Use
----------

[](#how-to-use)

### Installation

[](#installation)

1. `composer thearkaid/simple-name-generator`
2. `require_once 'vendor/autoload.php';`

### Example Usage

[](#example-usage)

Check the [example.php](example.php) file for a quick example on how to use the `SimpleNameGenerator`;

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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://www.gravatar.com/avatar/27f01b40d19c500c47da1b080bb12c694fc5a16e5f3544067a6f08a979aa3560?d=identicon)[TheArKaID](/maintainers/TheArKaID)

---

Top Contributors

[![TheArKaID](https://avatars.githubusercontent.com/u/35050722?v=4)](https://github.com/TheArKaID "TheArKaID (11 commits)")

### Embed Badge

![Health badge](/badges/thearkaid-simple-name-generator/health.svg)

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

###  Alternatives

[spatie/geocoder

Geocoding addresses to coordinates

8404.8M15](/packages/spatie-geocoder)[magefan/module-community

Magefan core module, required for other Magefan extensions

273.9M28](/packages/magefan-module-community)[acquia/drupal-environment-detector

Provides common methods for detecting the current Acquia environment

105.9M19](/packages/acquia-drupal-environment-detector)[te7a-houdini/laroute

Access Laravels URL/Route helper functions, from JavaScript.

33512.1k](/packages/te7a-houdini-laroute)[php-tui/cassowary

Cassowary constraint solving algorithm implementation

21759.9k1](/packages/php-tui-cassowary)

PHPackages © 2026

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