Skip to content

Commit c2534fe

Browse files
committed
Update README.md
1 parent 519d3f7 commit c2534fe

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
### Example
1+
# php-enum
22

3-
## The way normal class constants
3+
This is a native PHP implementation to add enumarable support to PHP.
4+
It's an abstract class that can be extended to emulate enumerables.
5+
6+
7+
# Why not ```SplEnum```
8+
9+
* It's not build-in PHP and requires pecl/extension
10+
* SplEnum is too much magic under the hod
11+
* SplEnum hasn't strict comparison
12+
13+
14+
# Example
15+
16+
## The way of class constants
417

518
class User
619
{
@@ -82,7 +95,8 @@
8295
* Using type-hint makes arguments save
8396
* Human readable name of a value is simple accessable
8497

85-
### New BSD License
98+
99+
# New BSD License
86100

87101
The files in this archive are released under the New BSD License.
88102
You can find a copy of this license in LICENSE.txt file.

0 commit comments

Comments
 (0)