Last active
August 29, 2015 14:13
-
-
Save tolu360/00988d1cd32826e92262 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Forge; | |
class PrettyName { | |
/** | |
* An array of adjectives. | |
* | |
* @var array | |
*/ | |
protected static $adj = [ | |
'aged', 'ancient', 'amiable', 'balmy', 'beautiful', 'billowing', | |
'blessed', 'bountiful', 'breezy', 'bubbling', 'calm', 'celestial', 'clean', | |
'colorful', 'colossal', 'curved', 'deep', 'divine', 'exquisite', | |
'fancy', 'fathomless', 'fragrant', 'gorgeous', 'graceful', 'harmonious', 'hidden', | |
'hollow', 'holy', 'icy', 'indigo', 'jubilant', 'limitless', 'lively', 'mellow', | |
'merciful', 'mirthful', 'misty', 'moonlit', 'mythic', 'quaint', 'precious', 'red', 'resilient', | |
'scenic', 'silent', 'snowy', 'solitary', 'sparkling', 'stunning', 'summer', | |
'smooth', 'tall', 'unwavering', 'wandering','warm', 'whispering', 'zealous', | |
]; | |
/** | |
* An array of nouns. | |
* | |
* @var array | |
*/ | |
protected static $nouns = [ | |
'abyss', 'atoll', 'aurora', 'autumn', 'badlands', 'beach', 'briars', | |
'brook', 'canopy', 'canyon', 'cavern', 'chasm', 'cliff', 'cove', 'crater', | |
'creek', 'darkness', 'dawn', 'desert', 'dew', 'dusk', 'farm', 'fern', | |
'firefly', 'flowers', 'fog', 'forest', 'galaxy', 'garden', 'geyser', | |
'grove', 'hamlet', 'hurricane', 'iceberg', 'lagoon', 'lake', 'meadow', 'mist', | |
'moss', 'mountain', 'oasis', 'ocean', 'peak', 'pebble', 'pine', 'plateau', | |
'pond', 'reef', 'reserve', 'resonance', 'sanctuary', 'sands', 'shelter', | |
'silence', 'snowflake', 'spring', 'storm', 'stream', 'summer', 'summit', | |
'sunrise', 'surf', 'temple', 'tundra', 'valley', 'waterfall', 'willow', | |
'winds', 'winter', | |
]; | |
/** | |
* Get a random, pretty name. | |
* | |
* @return string | |
*/ | |
public static function get() | |
{ | |
return static::$adj[array_rand(static::$adj)].'-'. | |
static::$nouns[array_rand(static::$nouns)]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment