2017 © Pedro Peláez
 

library haikunator

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

image

atrox/haikunator

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

  • Wednesday, April 27, 2016
  • by Atrox
  • Repository
  • 5 Watchers
  • 74 Stars
  • 8,680 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 9 Versions
  • 20 % Grown

The README.md

HaikunatorPHP

Build Status Latest Version Coverage Status, (*1)

Generate Heroku-like random names to use in your PHP applications., (*2)

Installation

composer require atrox/haikunator

Usage

Haikunator is pretty simple., (*3)

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

The following options are available:, (*4)

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, (*5)

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:, (*6)

Other Languages

Haikunator is also available in other languages. Check them out:, (*7)

  • Node: https://github.com/Atrox/haikunatorjs
  • .NET: https://github.com/Atrox/haikunator.net
  • Python: https://github.com/Atrox/haikunatorpy
  • Java: https://github.com/Atrox/haikunatorjava
  • Go: https://github.com/Atrox/haikunatorgo
  • Clojure: https://github.com/Atrox/haikunatorclj
  • Dart: https://github.com/Atrox/haikunatordart
  • Ruby: https://github.com/usmanbashir/haikunator
  • Rust: https://github.com/nishanths/rust-haikunator

The Versions

27/04 2016

dev-master

9999999-dev

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

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar Atrox

27/04 2016

v1.2.1

1.2.1.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar Atrox

27/04 2016

v1.2.0

1.2.0.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar Atrox

22/12 2015

v1.1.0

1.1.0.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar Atrox

10/12 2015

v1.0.1

1.0.1.0

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

  Sources   Download

BSD-3-Clause

The Development Requires

by Avatar Atrox

05/10 2015

v1.0.0

1.0.0.0

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

  Sources   Download

GPLv3

The Development Requires

by Avatar Atrox

27/03 2015

v0.1.2

0.1.2.0

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

  Sources   Download

GPLv3

The Development Requires

by Avatar Atrox

24/03 2015

v0.1.1

0.1.1.0

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

  Sources   Download

GPLv3

The Development Requires

by Avatar Atrox

22/03 2015

v0.1.0

0.1.0.0

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

  Sources   Download

GPLv3

The Development Requires

by Avatar Atrox