Skip to content

Based on Jeff Ballard's collection of BOFH style excuses of the day, this library selects a random one.

License

Notifications You must be signed in to change notification settings

gregor-j/bofh-style-excuses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bastard Operator From Hell (BOFH) style random excuses

Based on Jeff Ballard's collection of BOFH style excuses of the day, this library selects a random one. In case you don't want to rely on the web sources, you can provide your own list anywhere file_get_contents() can open.

Installation

composer require gregorj/bofhstyleexcuses

That's it. Well, you need composer installed first, but I guess that's obvious.

Library usage

I added some unit tests which demonstrate the usage. A brief example:

<?php
use GregorJ\BOFHStyleExcuses\Excuses;
$excuses = new Excuses();
printf("Your excuse of the day: %s", $excuses->get());
?>

This example relies on the fact, that you use composer's autoloader in vendor/autoload.php.

CLI usage

You can call bin/excuse from the commandline and wait patiently for a random excuse from Jeff Ballard's collection of BOFH style excuses.

Website standalone usage

You can point apache to the webroot and it will display a minimal HTML page with a random excuse from Jeff Ballard's collection of BOFH style excuses.

PHP unit tests

In case you want to run the unit tests, you can call vendor/bin/phpunit.

About

Based on Jeff Ballard's collection of BOFH style excuses of the day, this library selects a random one.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages