Skip to content

Commit 10d9bac

Browse files
author
igor
committed
Update README.md
1 parent 9ad2d34 commit 10d9bac

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
Enumerable helper
22
========================================
3+
Installation
4+
------------
5+
6+
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
7+
8+
Either run
9+
10+
```
11+
php composer.phar require --prefer-dist yii2mod/yii2-enum "*"
12+
```
13+
14+
or add
15+
16+
```
17+
"yii2mod/yii2-enum": "*"
18+
```
19+
20+
to the require section of your `composer.json` file.
21+
22+
323
### Example enumerable class
424
```php
525
use yii2mod\enum\helpers\BaseEnum;
@@ -27,4 +47,4 @@ class YesNoEnumerable extends BaseEnum
2747
var_dump(YesNoEnumerable::listData());
2848
var_dump(YesNoEnumerable::getLabel(1));
2949
var_dump(YesNoEnumerable::getLabel('YES')); // false
30-
```
50+
```

0 commit comments

Comments
 (0)