diff --git a/bin/cowsayphp b/bin/cowsayphp new file mode 100644 index 0000000..c4fad71 --- /dev/null +++ b/bin/cowsayphp @@ -0,0 +1,11 @@ +#!/usr/bin/env php + 1){ + $cow = new \League\Cowsayphp\Cow(); + echo $cow->speak($argv[1]); +} diff --git a/bin/cowsayphp.bat b/bin/cowsayphp.bat new file mode 100644 index 0000000..fcabb30 --- /dev/null +++ b/bin/cowsayphp.bat @@ -0,0 +1,2 @@ +@ECHO off +php %~dp0/cowsayphp %* \ No newline at end of file diff --git a/composer.json b/composer.json index 8a223c7..ef06afc 100644 --- a/composer.json +++ b/composer.json @@ -36,5 +36,11 @@ "branch-alias": { "dev-master": "1.0-dev" } + }, + "bin": [ + "bin/cowsayphp" + ], + "config":{ + "bin-dir": "bin" } }