From e624af181dace4164c74712fd7069447ad3af8ef Mon Sep 17 00:00:00 2001 From: Marcos Sigueros Date: Sat, 14 Feb 2015 15:29:10 +0100 Subject: [PATCH] Added bin to composer. --- bin/cowsayphp | 11 +++++++++++ bin/cowsayphp.bat | 2 ++ composer.json | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 bin/cowsayphp create mode 100644 bin/cowsayphp.bat 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" } }