File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -215,13 +215,20 @@ class SomeClass
215
215
See complete example in [ examples/serialization_php74.php] ( examples/serialization_php74.php ) .
216
216
217
217
## Existing solutions
218
- * https://github.com/myclabs/php-enum
219
- * https://github.com/marc-mabe/php-enum
220
- * https://www.php.net/manual/en/class.splenum.php
221
- * https://github.com/spatie/enum
218
+ Libraries:
219
+ * https://github.com/myclabs/php-enum (~ 1200 stars)
220
+ * https://github.com/BenSampo/laravel-enum (~ 700 stars)
221
+ * https://github.com/marc-mabe/php-enum (~ 300 stars)
222
+ * https://github.com/spatie/enum (~ 200 stars)
223
+ * https://github.com/Elao/PhpEnums (~ 100 stars)
224
+ * https://github.com/consistence/consistence#enums-and-multienums (~ 100 stars)
225
+ * https://github.com/mad-web/laravel-enum (~ 80 stars)
226
+ * https://github.com/greg0ire/enum (~ 40 stars)
222
227
* https://github.com/grifart/enum
223
- * https://github.com/consistence/consistence#enums-and-multienums
224
228
* https://github.com/zlikavac32/php-enum
229
+
230
+ PHP native:
231
+ * https://www.php.net/manual/en/class.splenum.php
225
232
* [ PHP RFC: Enumerated Types] ( https://wiki.php.net/rfc/enum )
226
233
227
234
(there are a lot of [ other PHP implementations] ( https://packagist.org/search/?query=php-enum ) )
You can’t perform that action at this time.
0 commit comments