From a0fbc6109a5183d904a93306fb9e8de919a1f3fa Mon Sep 17 00:00:00 2001 From: wujunze Date: Fri, 17 Mar 2017 14:41:13 +0800 Subject: [PATCH 1/3] update README --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 36605bf..89892ec 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,27 @@ # php-cli-color Simple and easy to use the PHP command-line output of color + + +##Installation + +composer require lijinma/php-cli-color '~1.0' + +##How to use +```php +getColoredString("Testing Colors class, this is purple string on yellow background.", "purple", "yellow") . PHP_EOL; +echo $colors->getColoredString("Testing Colors class, this is blue string on light gray background.", "blue", "light_gray") . PHP_EOL; +echo $colors->getColoredString("Testing Colors class, this is red string on black background.", "red", "black") . PHP_EOL; +echo $colors->getColoredString("Testing Colors class, this is cyan string on green background.", "cyan", "green") . PHP_EOL; +echo $colors->getColoredString("Testing Colors class, this is cyan string on default background.", "cyan") . PHP_EOL; +echo $colors->getColoredString("Testing Colors class, this is default string on cyan background.", null, "cyan") . PHP_EOL; +``` + +## run result + +![code run result](http://ww4.sinaimg.cn/large/0060lm7Tgy1fdptvr70bdj30nl072zld.jpg) \ No newline at end of file From 9e81a713e09b7cc4bb0c0f95762d6d8177311be9 Mon Sep 17 00:00:00 2001 From: wujunze Date: Fri, 17 Mar 2017 14:44:26 +0800 Subject: [PATCH 2/3] update image url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 89892ec..435cc11 100644 --- a/README.md +++ b/README.md @@ -24,4 +24,4 @@ echo $colors->getColoredString("Testing Colors class, this is default string on ## run result -![code run result](http://ww4.sinaimg.cn/large/0060lm7Tgy1fdptvr70bdj30nl072zld.jpg) \ No newline at end of file +![code run result](https://camo.githubusercontent.com/5509dd50a0f9fb194a6bc2a36153934e3d74e1d9/687474703a2f2f7777342e73696e61696d672e636e2f6c617267652f303036306c6d3754677931666470747672373062646a33306e6c3037327a6c642e6a7067) \ No newline at end of file From 2e592742f9083db5e34753254f4c78169f022174 Mon Sep 17 00:00:00 2001 From: wujunze Date: Fri, 17 Mar 2017 14:45:45 +0800 Subject: [PATCH 3/3] update title --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 435cc11..5cbac7d 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ Simple and easy to use the PHP command-line output of color -##Installation +## Installation composer require lijinma/php-cli-color '~1.0' -##How to use +## How to use ```php