2017 © Pedro Peláez
 

library bofhstyleexcuses

Read and return a random BOFH style excuse from a given URL.

image

gregorj/bofhstyleexcuses

Read and return a random BOFH style excuse from a given URL.

  • Thursday, October 5, 2017
  • by grej
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

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., (*1)

Installation

composer require gregorj/bofhstyleexcuses, (*2)

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

Library usage

I added some unit tests which demonstrate the usage. A brief example:, (*4)

<?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., (*5)

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., (*6)

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., (*7)

PHP unit tests

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

The Versions

05/10 2017

dev-master

9999999-dev

Read and return a random BOFH style excuse from a given URL.

  Sources   Download

MIT

The Requires

  • php ^5.5

 

The Development Requires

05/10 2017

1.0.2-stable

1.0.2.0

Read and return a random BOFH style excuse from a given URL.

  Sources   Download

MIT

The Requires

  • php ^5.5

 

The Development Requires

03/10 2017

1.0.1-stable

1.0.1.0

Read and return a random BOFH style excuse from a given URL.

  Sources   Download

MIT

The Requires

  • php ^5.5

 

The Development Requires

12/09 2017

1.0.0-stable

1.0.0.0

Read and return a random BOFH style excuse from a given URL.

  Sources   Download

MIT

The Requires

  • php ^5.5

 

The Development Requires