gajmohan / random-wait-message
A simple package to get random wait message
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gajmohan/random-wait-message
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2026-01-09 18:45:32 UTC
README
Simple PHP package to generate random fun wait messages
Usage
Get a random message
echo RandomWaitMessage::getMessageString();
// "Put your headphones on and have a personal dance party πΆππΊ"
# without an emoji
echo RandomWaitMessage::getMessageString(false);
// "Catch up on the 16,527 unread emails you have"
Get a random Message as an array
print_r(RandomWaitMessage::getMessageArray());
// ['message' => 'Meditate', 'emoji' => 'π§β']
Get all random messages
print_r(RandomWaitMessage::getAllMessage());
// [['message' => 'Pretend you are a ninja', 'emoji' => 'π₯·π»β'],...]
Include Custom Messages
$customMessage = Message::newMessage('Fork this repo', 'π΄');
$secondCustomMessage = Message::newMessage('Make a PR', 'π©βπ»');
# single message
RandomWaitMessage::getMessageString($includeEmoji = true, $customMessage, $secondCustomMessage...);
# single message array
RandomWaitMessage::getMessageArray($customMessage, $secondCustomMessage...);
# all messages
RandomWaitMessage::getAllMessage($customMessage, $secondCustomMessage...)