All Projects → Atrox → haikunatorphp

Atrox / haikunatorphp

Licence: BSD-3-Clause license
Generate Heroku-like random names to use in your php applications.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to haikunatorphp

haikunatorgo
Generate Heroku-like random names to use in your go applications.
Stars: ✭ 50 (-49.49%)
Mutual labels:  heroku, haikunator
haikunatorjava
Generate Heroku-like random names to use in your Java applications
Stars: ✭ 27 (-72.73%)
Mutual labels:  heroku, haikunator
Go Getting Started
Getting Started with Go on Heroku https://devcenter.heroku.com/articles/getting-started-with-go
Stars: ✭ 210 (+112.12%)
Mutual labels:  heroku
create-mern-ts-app
Create a Mongo-Express-React-Node Application written in TypeScript out of the box.
Stars: ✭ 30 (-69.7%)
Mutual labels:  heroku
Anydlbot
An Open Source GPLv3 All-In-One Telegram Bot
Stars: ✭ 236 (+138.38%)
Mutual labels:  heroku
Rocket
Automated software delivery as fast and easy as possible 🚀
Stars: ✭ 217 (+119.19%)
Mutual labels:  heroku
Heroku Deploy
A simple github action that dynamically deploys an app to heroku
Stars: ✭ 238 (+140.4%)
Mutual labels:  heroku
Idea Live Templates
My IntelliJ Live Templates
Stars: ✭ 207 (+109.09%)
Mutual labels:  heroku
arugo
Virtual rating system for codeforces using codeforces API.
Stars: ✭ 30 (-69.7%)
Mutual labels:  heroku
Awesome Heroku
A curated list of helpful Heroku resources.
Stars: ✭ 230 (+132.32%)
Mutual labels:  heroku
Heroku ebooks
A script to generate Markov chains and to post to an _ebooks account on Twitter using Heroku
Stars: ✭ 251 (+153.54%)
Mutual labels:  heroku
Shadowsocks Heroku
本项目已删除
Stars: ✭ 224 (+126.26%)
Mutual labels:  heroku
Clojurenews
Clojure News Web Application - (Hacker News Clone)
Stars: ✭ 217 (+119.19%)
Mutual labels:  heroku
Instagram Proxy Api
CORS compliant API to access Instagram's public data
Stars: ✭ 245 (+147.47%)
Mutual labels:  heroku
Subdir Heroku Buildpack
Allows to use subdirectory configured via environment variable as a project root
Stars: ✭ 211 (+113.13%)
Mutual labels:  heroku
node-postgres
This application demonstrates database operations using PostgreSQL as a database, Heroku as platform, Node.js as language and Angularjs as javascript based MVC.
Stars: ✭ 18 (-81.82%)
Mutual labels:  heroku
Heroku Config
[Utility] Push and pull heroku environment variables to your local env
Stars: ✭ 207 (+109.09%)
Mutual labels:  heroku
Heroku Python Script
Guide for hosting python scripts and applications on Heroku
Stars: ✭ 218 (+120.2%)
Mutual labels:  heroku
Semana Js Expert30
Aulas da Semana JS Expert 3.0 - Construindo um chat multiplataforma usando linha de comando e JavaScript Avançado
Stars: ✭ 238 (+140.4%)
Mutual labels:  heroku
heroku-integrated-firefox-geckodriver
Buildpack enables your client code to access Firefox along with Geckodriver in a Heroku slug.
Stars: ✭ 40 (-59.6%)
Mutual labels:  heroku

HaikunatorPHP

Build Status Latest Version Coverage Status

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

Installation

composer require atrox/haikunator

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

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

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:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].