php-enum VS php-enum

Compare php-enum vs php-enum and see what are their differences.

php-enum

Simple and fast implementation of enumerations with native PHP (by marc-mabe)

php-enum

The enum PHP is missing, inspired from SplEnum (by myclabs)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
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
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.

php-enum

Posts with mentions or reviews of php-enum. We have used some of these posts to build our list of alternatives and similar projects.

php-enum

Posts with mentions or reviews of php-enum. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-17.
  • Weekly "ask anything" thread
    2 projects | /r/PHP | 17 Aug 2021
    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
    1 project | dev.to | 30 Jan 2021
    This feature alone would likely cause me to drop myclabs/php-enum as my enum implementation.

What are some alternatives?

When comparing php-enum and php-enum you can also consider the following projects:

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.