PHPackages                             alrik11es/cowsayphp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. alrik11es/cowsayphp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alrik11es/cowsayphp
===================

Cowsay port in PHP

1.2.0(9y ago)72516.3k↓22%12[1 PRs](https://github.com/alrik11es/cowsayphp/pulls)1MITPHPPHP &gt;=5.6.0

Since Feb 14Pushed 9y ago2 watchersCompare

[ Source](https://github.com/alrik11es/cowsayphp)[ Packagist](https://packagist.org/packages/alrik11es/cowsayphp)[ Docs](https://github.com/alrik11es/cowsayphp)[ RSS](/packages/alrik11es-cowsayphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (6)Used By (1)

cowsayphp
=========

[](#cowsayphp)

[![Latest Version](https://camo.githubusercontent.com/ffbab6b0b609589986b8f2c4c63269778d0a4c65a953b659c8ce2da01dbe3600/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f616c72696b313165732f636f777361797068702e7376673f7374796c653d666c61742d737175617265)](https://github.com/alrik11es/cowsayphp/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/7f6b72fd017146a3b7afc9a4eb5137eb9f26d911adf92003f16b6890c9c4f692/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f616c72696b313165732f636f777361797068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/alrik11es/cowsayphp)[![Coverage Status](https://camo.githubusercontent.com/06713a7938d66283ce41b790d9c82a9ab8434ed12137f9860bd08a69ae0c573b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f616c72696b313165732f636f777361797068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/alrik11es/cowsayphp/code-structure)[![Quality Score](https://camo.githubusercontent.com/3f609a5c7d000ff584f00c0f096d8417eb0bc3d69d8944b80aeaa67b52cce5d2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f616c72696b313165732f636f777361797068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/alrik11es/cowsayphp)[![Total Downloads](https://camo.githubusercontent.com/34361247315af7ae97ec6f4b1cb033415105ed10f310cd81ba60fa1911dabb0a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c72696b313165732f636f777361797068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alrik11es/cowsayphp)

Do you remember classic linux Cowsay? Well this is a port for PHP if you want lovely cows everywhere in your terminal apps.

Now supporting more animals in the farm.

Install
-------

[](#install)

Via Composer

```
$ composer require alrik11es/cowsayphp
```

Requires PHP &gt;=5.6

Using
-----

[](#using)

```
use Cowsayphp\Farm;

$cow = Farm::create(\Cowsayphp\Farm\Cow::class);
echo ''.$cow->say("Ohmg I'm a cow!").'';
```

The result:

```
< Ohmg I'm a cow! >
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

```

### Other animals

[](#other-animals)

*\\Cowsayphp\\Farm\\Whale::class*

```
< hello I'm a whale! >
    \
     \            ##         .
            ## ## ##        ==
         ## ## ## ## ##    ===
     /"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
     \______ o           __/
      \    \         __/
       \____\_______/

```

*\\Cowsayphp\\Farm\\Dragon::class*

```
< Dragon! >
      \                    / \  //\
       \    |\___/|      /   \//  \\
            /0  0  \__  /    //  | \ \
           /     /  \/_/    //   |  \  \
           @_^_@'/   \/_   //    |   \   \
           //_^_/     \/_ //     |    \    \
        ( //) |        \///      |     \     \
      ( / /) _|_ /   )  //       |      \     _\
    ( // /) '/,_ _ _/  ( ; -.    |    _ _\.-~        .-~~~^-.
  (( / / )) ,-{        _      `-.|.-~-.           .~         `.
 (( // / ))  '/\      /                 ~-. _ .-~      .-~^-.  \
 (( /// ))      `.   {            }                   /      \  \
  (( / ))     .----~-.\        \-'                 .~         \  `. \^-.
             ///.----..>        \             _ -~             `.  ^-`  ^-_
               ///-._ _ _ _ _ _ _}^ - - - - ~                     ~-- ,.-~

```

*\\Cowsayphp\\Farm\\Tux::class*

```
< Tux present! >
   \
    \
        .--.
       |o_o |
       |:_/ |
      //   \ \
     (|     | )
    /'\_   _/`\
    \___)=(___/

```

Deprecated use
--------------

[](#deprecated-use)

This will be deprecated in future versions. But still works.

```
use Cowsayphp\Cow;

echo ''.Cow::say("Ohmg I'm a cow!").'';
```

Testing
-------

[](#testing)

```
$ ./bin/phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Marcos Sigueros Fernández](https://github.com/alrik11es)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 74.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~278 days

Total

3

Last Release

3554d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

1.2.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/960a0578562aecc8b789ec3175dbcc166faadc0d5baa66e87b19720cd62d9d88?d=identicon)[alrik11es](/maintainers/alrik11es)

---

Top Contributors

[![alrik11es](https://avatars.githubusercontent.com/u/249844?v=4)](https://github.com/alrik11es "alrik11es (23 commits)")[![shieldo](https://avatars.githubusercontent.com/u/97280?v=4)](https://github.com/shieldo "shieldo (7 commits)")[![rivetmichael](https://avatars.githubusercontent.com/u/977020?v=4)](https://github.com/rivetmichael "rivetmichael (1 commits)")

---

Tags

cowsayphpcowsay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alrik11es-cowsayphp/health.svg)

```
[![Health](https://phpackages.com/badges/alrik11es-cowsayphp/health.svg)](https://phpackages.com/packages/alrik11es-cowsayphp)
```

###  Alternatives

[yay/yay

A high level PHP Pre-Processor

5742.9k3](/packages/yay-yay)[gipetto/cowsay

An extensible PHP port of the Cowsay linux utility

106.6k](/packages/gipetto-cowsay)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
