PHPackages                             atrox/haikunator - 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. atrox/haikunator

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

atrox/haikunator
================

Generate Heroku-like random names to use in your php applications.

v1.3.0(6y ago)110240.3k—7.7%11BSD-3-ClausePHPPHP &gt;=5.5

Since Mar 22Pushed 5y ago4 watchersCompare

[ Source](https://github.com/Atrox/haikunatorphp)[ Packagist](https://packagist.org/packages/atrox/haikunator)[ RSS](/packages/atrox-haikunator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (10)Used By (0)

HaikunatorPHP
=============

[](#haikunatorphp)

[![Build Status](https://camo.githubusercontent.com/625e34740b2490db57f2089cd8c51c44737d5ecc4aae6e01a4719116a59acae4/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e742e7376673f75726c3d6874747073253341253246253246616374696f6e732d62616467652e6174726f782e6465762532466174726f782532466861696b756e61746f727068702532466261646765267374796c653d666c61742d737175617265)](https://actions-badge.atrox.dev/atrox/haikunatorphp/goto)[![Latest Version](https://camo.githubusercontent.com/2167f034aeed7147eadcb75c1eaea39eb09179081f97511a760400fdc7439a38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4174726f782f6861696b756e61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/atrox/haikunator)[![Coverage Status](https://camo.githubusercontent.com/a1c7bdcce14de37199625f1e49d2ca5d765d9b66c52c735609f41dde12f92854/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6174726f782f6861696b756e61746f727068702e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/atrox/haikunatorphp)

Generate Heroku-like random names to use in your PHP applications.

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

[](#installation)

```
composer require atrox/haikunator

```

Usage
-----

[](#usage)

Haikunator is pretty simple.

```
use Atrox\Haikunator;

// default usage
Haikunator::haikunate() // => "wispy-dust-1337"

// custom length (default=4)
Haikunator::haikunate(["tokenLength" => 6]) // => "patient-king-887265"

// use hex instead of numbers
Haikunator::haikunate(["tokenHex" => true]) // => "purple-breeze-98e1"

// use custom chars instead of numbers/hex
Haikunator::haikunate(["tokenChars" => "HAIKUNATE"]) // => "summer-atom-IHEA"

// don't include a token
Haikunator::haikunate(["tokenLength" => 0]) // => "cold-wildflower"

// use a different delimiter
Haikunator::haikunate(["delimiter" => "."]) // => "restless.sea.7976"

// no token, space delimiter
Haikunator::haikunate(["tokenLength" => 0, "delimiter" => " "]) // => "delicate haze"

// no token, empty delimiter
Haikunator::haikunate(["tokenLength" => 0, "delimiter" => ""]) // => "billowingleaf"

// custom nouns and/or adjectives
Haikunator::$ADJECTIVES = ["red", "green", "blue"];
Haikunator::$NOUNS = ["reindeer"];
Haikunator::haikunate(); // => "blue-reindeer-4252"
```

Options
-------

[](#options)

The following options are available:

```
Haikunator::haikunate([
  "delimiter" => "-",
  "tokenLength" => 4,
  "tokenHex" => false,
  "tokenChars" => "0123456789"
]);

// get/set nouns or adjectives
Haikunator::$ADJECTIVES
Haikunator::$NOUNS
```

*If `tokenHex` is true, it overrides any tokens specified in `tokenChars`*

Contributing
------------

[](#contributing)

Everyone is encouraged to help improve this project. Here are a few ways you can help:

- [Report bugs](https://github.com/atrox/haikunatorphp/issues)
- Fix bugs and [submit pull requests](https://github.com/atrox/haikunatorphp/pulls)
- Write, clarify, or fix documentation
- Suggest or add new features

Other Languages
---------------

[](#other-languages)

Haikunator is also available in other languages. Check them out:

- Node:
- .NET:
- Python:
- Java:
- Go:
- Clojure:
- Dart:
- Ruby:
- Rust:

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 65.4% 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 ~234 days

Recently: every ~402 days

Total

9

Last Release

2201d ago

Major Versions

v0.1.2 → v1.0.02015-10-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b473a034ef21c1110e9075e8ae08cce4a18e3931dfa1002b8402e60ec0ec453?d=identicon)[Atrox](/maintainers/Atrox)

---

Top Contributors

[![Atrox](https://avatars.githubusercontent.com/u/1037067?v=4)](https://github.com/Atrox "Atrox (17 commits)")[![stefanotorresi](https://avatars.githubusercontent.com/u/2952427?v=4)](https://github.com/stefanotorresi "stefanotorresi (6 commits)")[![FrontEndCoffee](https://avatars.githubusercontent.com/u/16303480?v=4)](https://github.com/FrontEndCoffee "FrontEndCoffee (1 commits)")[![nishanths](https://avatars.githubusercontent.com/u/6028224?v=4)](https://github.com/nishanths "nishanths (1 commits)")[![Sandyman](https://avatars.githubusercontent.com/u/468748?v=4)](https://github.com/Sandyman "Sandyman (1 commits)")

---

Tags

haikunatorherokuphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/atrox-haikunator/health.svg)

```
[![Health](https://phpackages.com/badges/atrox-haikunator/health.svg)](https://phpackages.com/packages/atrox-haikunator)
```

PHPackages © 2026

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