MyGit

alrik11es/cowsayphp

Fork: 12 Star: 72 (更新于 2024-10-18 07:10:48)

license: MIT

Language: PHP .

Classic cowsay PHP port

最后发布版本: 1.2.0 ( 2016-08-25 15:58:50)

GitHub网址

cowsayphp

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

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

Via Composer

$ composer require alrik11es/cowsayphp

Requires PHP >=5.6

Using

use Cowsayphp\Farm;

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

The result:

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

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

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

use Cowsayphp\Cow;

echo '<pre>'.Cow::say("Ohmg I'm a cow!").'</pre>';

Testing

$ ./bin/phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

最近版本更新:(数据更新于 2024-09-27 02:25:55)

2016-08-25 15:58:50 1.2.0

2015-02-14 22:32:44 1.0.0

主题(topics):

cowsay, php

alrik11es/cowsayphp同语言 PHP最近更新仓库

2024-11-01 18:37:36 schmittjoh/JMSSerializerBundle

2024-10-31 21:37:53 filamentphp/filament

2024-10-28 00:16:41 symfony/var-dumper

2024-10-28 00:11:41 symfony/symfony

2024-10-11 23:44:26 coollabsio/coolify

2024-10-11 03:27:29 odan/slim4-skeleton