PHPackages                             andifahruddinakas/php-enum - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. andifahruddinakas/php-enum

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

andifahruddinakas/php-enum
==========================

A PHP Abstract Enum Class

03PHP

Since Nov 16Pushed 3y agoCompare

[ Source](https://github.com/andifahruddinakas/php-enum)[ Packagist](https://packagist.org/packages/andifahruddinakas/php-enum)[ RSS](/packages/andifahruddinakas-php-enum/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP-Enum
========

[](#php-enum)

To make your Enums feel alive, just make them extend `Enum` abstract class!

Installation
------------

[](#installation)

Install [Composer](https://getcomposer.org) and run following command in your project's root directory:

```
composer require andifahruddinakas/php-enum

```

Usage
-----

[](#usage)

See the [documentation](docs)

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Contributions are very welcome.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Milad Rahimi](https://github.com/miladrahimi/php-enum)
- [Andi Fahruddin Akas](https://github.com/andifahruddinakas)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 61.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf927b24c2b21ca7ffb341bfabebc9621f23eddb33706f65394f94e0e9ff953f?d=identicon)[andifahruddinakas](/maintainers/andifahruddinakas)

---

Top Contributors

[![miladrahimi](https://avatars.githubusercontent.com/u/6689295?v=4)](https://github.com/miladrahimi "miladrahimi (16 commits)")[![andifahruddinakas](https://avatars.githubusercontent.com/u/57283157?v=4)](https://github.com/andifahruddinakas "andifahruddinakas (10 commits)")

### Embed Badge

![Health badge](/badges/andifahruddinakas-php-enum/health.svg)

```
[![Health](https://phpackages.com/badges/andifahruddinakas-php-enum/health.svg)](https://phpackages.com/packages/andifahruddinakas-php-enum)
```

###  Alternatives

[reinink/remember-query-strings

Laravel middleware that automatically remembers and restores query strings.

76598.2k3](/packages/reinink-remember-query-strings)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
