Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

Atrox/haikunatorphp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusLatest VersionCoverage Status

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

Installation

composer require atrox/haikunator

Usage

Haikunator is pretty simple.

useAtrox\Haikunator;// default usageHaikunator::haikunate()// => "wispy-dust-1337"// custom length (default=4)Haikunator::haikunate(["tokenLength" =>6])// => "patient-king-887265"// use hex instead of numbersHaikunator::haikunate(["tokenHex" =>true])// => "purple-breeze-98e1"// use custom chars instead of numbers/hexHaikunator::haikunate(["tokenChars" =>"HAIKUNATE"])// => "summer-atom-IHEA"// don't include a tokenHaikunator::haikunate(["tokenLength" =>0])// => "cold-wildflower"// use a different delimiterHaikunator::haikunate(["delimiter" =>"."])// => "restless.sea.7976"// no token, space delimiterHaikunator::haikunate(["tokenLength" =>0,"delimiter" =>""])// => "delicate haze"// no token, empty delimiterHaikunator::haikunate(["tokenLength" =>0,"delimiter" =>""])// => "billowingleaf"// custom nouns and/or adjectivesHaikunator::$ADJECTIVES = ["red","green","blue"];Haikunator::$NOUNS = ["reindeer"];Haikunator::haikunate();// => "blue-reindeer-4252"

Options

The following options are available:

Haikunator::haikunate(["delimiter" =>"-","tokenLength" =>4,"tokenHex" =>false,"tokenChars" =>"0123456789"]);// get/set nouns or adjectivesHaikunator::$ADJECTIVESHaikunator::$NOUNS

IftokenHex is true, it overrides any tokens specified intokenChars

Contributing

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

Other Languages

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp