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

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

derekisbusy/yii2-haikunator
===========================

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

0413PHP

Since Jun 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/derekisbusy/yii2-haikunator)[ Packagist](https://packagist.org/packages/derekisbusy/yii2-haikunator)[ RSS](/packages/derekisbusy-yii2-haikunator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-haikunator
===============

[](#yii2-haikunator)

[![Build Status](https://camo.githubusercontent.com/942e4cf501e7b408fc26b1ec95af8cb9011beba6f67f83479bcc69d7aba46fe5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4174726f782f6861696b756e61746f727068702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Atrox/haikunatorphp)[![Latest Version](https://camo.githubusercontent.com/2167f034aeed7147eadcb75c1eaea39eb09179081f97511a760400fdc7439a38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4174726f782f6861696b756e61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/atrox/haikunator)[![Coverage Status](https://camo.githubusercontent.com/c7ca3ee757831dfc1a354ebaac55cdbd7686d0e3fd9fb8d9a60a66bc2a3a1ab1/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f4174726f782f6861696b756e61746f727068702e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/Atrox/haikunatorphp)[![Packagist](https://camo.githubusercontent.com/cee56bd51e26611b36363b1af4ebc1d9f695cb6f88e2d3350ec16cc49c9a4cf3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646572656b6973627573792f796969322d6861696b756e61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/derekisbusy/yii2-haikunator)

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

*This package has been forked from the original [HaikunatorPHP](https://github.com/Atrox/haikunatorphp) repository and modified to work with the Yii2 autoloader.*

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

[](#installation)

```
composer require derekisbusy/yii2-haikunator

```

Usage
-----

[](#usage)

Haikunator is pretty simple.

```
use derekisbusy\haikunator\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:
- Dart:
- Ruby:
- Go:

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.9% 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/b869af2c6981c02841e47e2e56a8753f51f3cc0594f6e2ac8742297cb9a828bc?d=identicon)[derekisbusy](/maintainers/derekisbusy)

---

Top Contributors

[![derekisbusy](https://avatars.githubusercontent.com/u/5118781?v=4)](https://github.com/derekisbusy "derekisbusy (23 commits)")[![Atrox](https://avatars.githubusercontent.com/u/1037067?v=4)](https://github.com/Atrox "Atrox (9 commits)")

### Embed Badge

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

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

PHPackages © 2026

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