Derafu: Enum - Yet Another List of Enumerations for PHP

GitHub last commit GitHub code size in bytes GitHub Issues Total Downloads Monthly Downloads

A PHP repository for global enumerations.

Note on Enumerations

While this package provides a basic set of enumerations for specific use cases, it is highly recommended to consider using PrinsFrank/standards for more comprehensive enumeration needs. The PrinsFrank/standards package offers:

  • A more extensive collection of standardized enumerations.
  • Regular updates based on international standards.
  • Better maintained and widely adopted in the PHP community.
  • More robust validation and type-safety features.

This package (derafu/enum) should be considered primarily for very specific use cases where the more comprehensive solution might be unnecessary or when you need custom enumerations not covered by standard libraries.

Installation

You can install the package via composer:

composer require derafu/enum

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

License

This package is open-sourced software licensed under the MIT license.