php-enum
enum
php-enum | enum | |
---|---|---|
1 | 2 | |
462 | 747 | |
- | 1.9% | |
0.0 | 3.2 | |
7 months ago | 9 days 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).
enum
-
Safely upgrade from PHP 7.4 to 8.1 using Rector
That last rule SpatieEnumClassToEnumRector is skipped because I'm using the spatie/enum package, and I don't want it to be converted to PHP native enums automatically. The reason for that is that the Spatie package has some nice little helpers, and it's safer in my opinion to migrate some of the enums manually.
-
Laravel 9: Enums!
And yes! Finally we have official support for Enums in php 8.1 although we could add them to Laravel framework by using third-party packages like spatie/enums.
What are some alternatives?
laravel-enum - Simple, extensible and powerful enumeration implementation for Laravel.
php-enum - The enum PHP is missing, inspired from SplEnum
map - PHP arrays and collections made easy
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.
Symfony - The Symfony PHP framework
DoctrineEnumBundle - 📦 Provides support of ENUM type for Doctrine in Symfony applications.
Laravel - The Laravel Framework.
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