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.

Skip to download link

$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.

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.