laravel-enum VS enum

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

enum

Strongly typed enums in PHP supporting autocompletion and refactoring (by spatie)
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
laravel-enum enum
3 2
1,976 748
- 2.0%
6.9 3.2
about 2 months ago 19 days ago
PHP 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.

laravel-enum

Posts with mentions or reviews of laravel-enum. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-02-08.
  • How to Use Laravel Rules
    1 project | dev.to | 27 Jul 2023
    Suppose we have a Permission enum in our Laravel project, and when an admin assigns a permission to a user, we need to verify if the permission is valid. To accomplish this, we'll create the Permission enum using BenSampo/laravel-enum package:
  • Laravel enum tips!!
    1 project | dev.to | 11 Aug 2022
    About Laravel Enum
  • Suggestions for improvement to lookup table
    2 projects | /r/laravel | 8 Feb 2021
    I use this laravel-enum package, Spatie has one that I'm sure is great as well. Have you checked out how they do things to see if there are any takeaways? They're a different approach because the list of enums aren't stored in the database, which I really like because it means I can get the enum types and values autocompleted in my IDE. There are also some convenient features like attribute casting and validation rules.

enum

Posts with mentions or reviews of enum. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-25.
  • Safely upgrade from PHP 7.4 to 8.1 using Rector
    2 projects | dev.to | 25 Sep 2022
    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!
    1 project | dev.to | 30 Jan 2022
    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?

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

sushi - Eloquent's missing "array" driver.

php-enum - The enum PHP is missing, inspired from SplEnum

php-enum - Simple and fast implementation of enumerations with native PHP

laravel-mysql-spatial - MySQL Spatial Data Extension integration with Laravel.

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.

laravel-fpdf - Create PDFs with Laravel, provides FPDF version 1.86

DoctrineEnumBundle - 📦 Provides support of ENUM type for Doctrine in Symfony applications.

bouncer - Laravel Eloquent roles and abilities.

Laravel - The Laravel Framework.

laravel-database-emails - Store e-mails in the database and send them using a cronjob