Enum

Top 23 Enum Open-Source Projects

  • Magic Enum C++

    Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code

  • Project mention: What C++ library do you wish existed but hasn’t been created yet? | /r/cpp | 2023-07-08

    I'm not sure this is quite what you're asking for, but this library has been super helpful to me in the past : https://github.com/Neargye/magic_enum

  • php-enum

    The enum PHP is missing, inspired from SplEnum

  • 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.

    InfluxDB logo
  • hypersistence-utils

    The Hypersistence Utils library (previously known as Hibernate Types) gives you Spring and Hibernate utilities that can help you get the most out of your data access layer.

  • SmartEnum

    A base class for quickly and easily creating strongly typed enum replacements in C#.

  • laravel-enum

    Simple, extensible and powerful enumeration implementation for Laravel.

  • Project mention: How to Use Laravel Rules | dev.to | 2023-07-27

    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:

  • Enums.NET

    Enums.NET is a high-performance type-safe .NET enum utility library

  • Better Enums

    C++ compile-time enum to string, iteration, in a single header file

  • Project mention: How to convert an enum to string in C++ | news.ycombinator.com | 2023-09-30

    I really like better_enums instead of magic_enums. There’s no limit on enum size with it: http://aantron.github.io/better-enums/

    It was heavily used at a former employer of mine, so definitely a solid production-ready solution.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • strum

    A small rust library for adding custom derives to enums

  • Project mention: What are some common verbose code patterns in rust and unique ways to reduce the said verbosity? | /r/rust | 2023-07-13

    Take a look at the strum crate. https://crates.io/crates/strum

  • Enumeratum

    A type-safe, reflection-free, powerful enumeration implementation for Scala with exhaustive pattern match warnings and helpful integrations.

  • Project mention: How to implement `if-else if -else if -else` with cat effect IO in Scala? | /r/scala | 2023-05-16

    I'm not sure I understand what Cats or cats-effect has to do with what you're trying to do. As far as I can tell, it sounds like what you're asking is simply "what's the best way to implement an enumerated type in Scala?" The best answer to that I'm aware of is Enumeratum.

  • enum

    Strongly typed enums in PHP supporting autocompletion and refactoring

  • go-enum

    An enum generator for go

  • Project mention: Ten Years of “Go: The Good, the Bad, and the Meh | news.ycombinator.com | 2023-07-18

    While not perfect, there are ways to generate enums automatically using go:generate, e.g. https://github.com/abice/go-enum

  • StatefulEnum

    A very simple state machine plugin built on top of ActiveRecord::Enum

  • ecto_enum

    Ecto extension to support enums in models

  • StepSlider

    StepSlider its custom implementation of slider such as UISlider for preset integer values.

  • Unrealm

    Unrealm is an extension on RealmCocoa, which enables Swift native types to be saved in Realm.

  • php-enum

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

  • PowerShell-Red-Team

    Collection of PowerShell functions a Red Teamer may use in an engagement

  • DoctrineEnumBundle

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

  • enumer

    A Go tool to auto generate methods for your enums (by dmarkham)

  • Project mention: Go Enums Still Suck | news.ycombinator.com | 2024-03-28
  • cakephp-tools

    A CakePHP Tools plugin containing lots of useful helpers, behaviors, components, shells, ...

  • genesis

    All generic functions for Go you ever need! (by life4)

  • enum

    Type safe enums for Go without code generation or reflection (by orsinium-labs)

  • Project mention: Enum: Type safe enums for Go without code generation or reflection | news.ycombinator.com | 2023-08-30
  • PhpEnums

    :nut_and_bolt: Extended PHP 8.1+ enums features & specific integrations with frameworks and libraries

  • Project mention: Designing with PHP 8.1 Enumerations | dev.to | 2023-12-03
  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Enum related posts

  • How to Use Laravel Rules

    1 project | dev.to | 27 Jul 2023
  • What are some common verbose code patterns in rust and unique ways to reduce the said verbosity?

    1 project | /r/rust | 13 Jul 2023
  • What C++ library do you wish existed but hasn’t been created yet?

    18 projects | /r/cpp | 8 Jul 2023
  • Published my first Crate today to map Environment Variables to Enums

    2 projects | /r/rust | 11 Jun 2023
  • How to implement `if-else if -else if -else` with cat effect IO in Scala?

    1 project | /r/scala | 16 May 2023
  • Two-way alternative to enum_kinds crate?

    1 project | /r/rust | 4 May 2023
  • enum_name (yet another enum to/from string conversion utility >=C++11)

    4 projects | /r/cpp | 19 Mar 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 5 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Enum projects? This list will help you:

Project Stars
1 Magic Enum C++ 4,424
2 php-enum 2,713
3 hypersistence-utils 2,265
4 SmartEnum 2,055
5 laravel-enum 1,971
6 Enums.NET 1,650
7 Better Enums 1,593
8 strum 1,590
9 Enumeratum 1,177
10 enum 743
11 go-enum 652
12 StatefulEnum 614
13 ecto_enum 562
14 StepSlider 551
15 Unrealm 537
16 php-enum 462
17 PowerShell-Red-Team 462
18 DoctrineEnumBundle 458
19 enumer 371
20 cakephp-tools 337
21 genesis 330
22 enum 328
23 PhpEnums 321

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com