Fork me on GitHub



Updated: November 25, 2015

PHP-CowSay is just that, a PHP port of the Cowsay *nix command line utility. This library is not designed for command line use. You should install the original Cowsay for that.

This code is in use on this site, along with a BOFD list, for the 404 pages (refresh for a new insult).

$bessie = new Cow('Hello, Farm!');
echo $bessie;


< Hello, Farm! >
          \   ^__^
           \  (oo)\_______
              (__)\       )\/\
                  ||----w |
                  ||     ||

See the full Cowsay ReadMe for more implementation details as well as for information on how to create your own carcasses.

Getting the code

CowSay can be installed directly or via Composer. It is listed on Packagist.


Issues are handled via PHP-Cowsay Github Issues.

Update History

About the closest I’ll get to an official changelog on this is the GitHub commit log: View Commit History.

Donations buy donuts. Donuts help keep us motivated. When we’re motivated we make plugins. Please help keep us motivated to make more useful contributions to the coding community.