php-enum
php-enum
php-enum | php-enum | |
---|---|---|
1 | 2 | |
462 | 2,713 | |
- | 0.1% | |
0.0 | 3.2 | |
7 months ago | 3 months ago | |
PHP | PHP | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
php-enum
-
[RFC] Voting on enums will start next week, any last minute feedback?
Now I'm thinking there will be a need for Rectors to convert existing enum libraries into these (I've been using marc-mabe/php-enum).
php-enum
-
Weekly "ask anything" thread
My understanding of the new PHP enums are that they provide a first-class citizen for enum patterns in userland that are extremely common. For example, there is a popular enum library https://github.com/myclabs/php-enum. But many people craft these by hand in their projects. The main idea is to provide an abstraction over "strings that inform business logic" for lack of a better term.
-
My opinion on the PHP 8.1 Enum RFC
This feature alone would likely cause me to drop myclabs/php-enum as my enum implementation.
What are some alternatives?
laravel-enum - Simple, extensible and powerful enumeration implementation for Laravel.
map - PHP arrays and collections made easy
enum - Strongly typed enums in PHP supporting autocompletion and refactoring
Symfony - The Symfony PHP framework
attributary - A library for PHP 8 Attribute developers. This library gives developers a similar experience to the Doctrine/Annotation library.
DoctrineEnumBundle - 📦 Provides support of ENUM type for Doctrine in Symfony applications.
enum-concern - A PHP package for effortless Enumeration handling with Laravel Collections 📦 ✨
PhpEnums - :nut_and_bolt: Extended PHP 8.1+ enums features & specific integrations with frameworks and libraries
Laravel - Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.