From 3c4ae84de64c981e058deff71af831febd6ee848 Mon Sep 17 00:00:00 2001 From: Mehran Barzandeh Date: Wed, 13 Jul 2016 15:37:00 +0430 Subject: [PATCH] Update README.md --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index 431a64a..16e7e48 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,35 @@ # yii2-sparkline A wrapper for Jquery Sparkline in Yii2 + +Installation +------------ + +The preferred way to install this extension is through [composer](http://getcomposer.org/download/). + +Either run + +``` +php composer.phar require --prefer-dist mrlco/yii2-sparkline "*" +``` + +or add + +``` +"mrlco/yii2-sparkline": "*" +``` + +to the require section of your `composer.json` file. + +Usage +----- + +```php + [ + 'type' => 'bar', + 'height' => 20, + 'barColor' => '#00a65a', + ], + 'data' => [90, 80, 90, -70, 61, -83, 63] +]); ?> +```