robbielove / laravel-lobster-name
A simple package to add traits to generate names
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- illuminate/support: ^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
README
Install
composer require robbielove/laravel-lobster-name
Usage
Add the trait to your model:
use RobbieLove\LobsterName\Traits\HasLobsterName; class User extends Model { use HasLobsterName; } // use as attribute: $user = new User; $user->lobster_name; // Robbie Robster $user->dog_name; // Rob Dog $user->doctor_name; // Dr, Robbie $user->judge_name; // The Honorable Judge Robbie $user->king_name; // Your Highness, Robbie $user->queen_name; // Your Majesty, Robbie $user->initial_name; // R $user->backwards_name; // eibboR // New methods $user->pirate_name; // Captain Robbie $user->superhero_name; // Super Robbie $user->secret_agent_name; // Agent R $user->rapper_name; // Lil' Robbie $user->space_explorer_name; // Astro Robbie $user->anagram_name; // e.g. eobbiR $user->alternating_case_name; // RoBbIe $user->excited_name; // Robbie!!! $user->reversed_case_name; // rOBBIE $user->random_vowel_replaced_name; // e.g. Rebbe $user->random_pattern_name; // e.g. Rebco $user->palindrome_name; // e.g. Robor $user->caesar_cipher_name; // e.g. Tloiaa $user->emoji_name; // e.g. R🦄o🌈b🍩b🍦i🍉e🌮 $user->underscore_name; // e.g. R_obb_ie $user->alliterative_name; // Robbie the Rabbit $user->rhyming_name; // e.g. Bobbie $user->onomatopoeia_name; // Robbie the Rumble $user->in_pig_latin_name; // Obbieray $user->in_gibberish_name; // Robsobobbier $user->double_letters_name; // RRoobbbbiiee $user->blankspace_name; // " R o b b i e "
Testing
Run the tests with:
vendor/bin/phpunit
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
Security
If you discover any security-related issues, please email 13571547+robbielove@users.noreply.github.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.