enumerations
Better Rails Enumerations (by infinum)
enums
Helpers for making PHP enums more lovable. (by archtechx)
enumerations | enums | |
---|---|---|
1 | 3 | |
38 | 442 | |
- | 2.3% | |
3.9 | 6.5 | |
8 months ago | 3 months ago | |
Ruby | PHP | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
enumerations
Posts with mentions or reviews of enumerations.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-09.
-
Is this a bad way to create a custom Enum in Ruby?
I have been using this gem https://github.com/infinum/enumerations
enums
Posts with mentions or reviews of enums.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-06-24.
-
RFC: Auto-implement Stringable for string backed enums
If you want to more easily access the string value of an enum, you could use archtecx/enums with the InvokableCases trait - only it also works predictably for int-backed Enums, as well as pure Enums. But it's just one userland solution - there are others.
- 5 Pitfalls of Upgrade to Native PHP Enums and How to Avoid Them
-
Stringable enums?
I've been using enum helpers a bit lately. Invokable cases could probably do what you want.
What are some alternatives?
When comparing enumerations and enums you can also consider the following projects:
cloudfront-signer - Ruby gem for signing AWS CloudFront private content URLs and streaming paths.
PHPT - The PHP Interpreter