Skip to content

Commit e42fa9d

Browse files
authored
Move installation instructions at the top of the README
1 parent 9e7ddd7 commit e42fa9d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Using an enum instead of class constants provides the following advantages:
1717

1818
This Enum class is not intended to replace class constants, but only to be used when it makes sense.
1919

20+
## Installation
21+
22+
```
23+
composer require myclabs/php-enum
24+
```
2025

2126
## Declaration
2227

@@ -115,9 +120,3 @@ class Action extends Enum
115120
const EDIT = 'edit';
116121
}
117122
```
118-
119-
## Installation
120-
121-
```
122-
composer require myclabs/php-enum
123-
```

0 commit comments

Comments
 (0)