PHPackages                             zingle-com/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. zingle-com/php-enum

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

zingle-com/php-enum
===================

PHP Enum like objects.

1.1.3(7y ago)024.7k↓50%1MITPHPPHP ~7.1

Since Jul 16Pushed 7y ago2 watchersCompare

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

READMEChangelogDependencies (2)Versions (9)Used By (1)

PHP Enum
========

[](#php-enum)

[![Build Status](https://camo.githubusercontent.com/afa0a9f3e858a38832ec46e6d7465cb51ecd8daf09d30c7040394ed311f2d5bb/68747470733a2f2f7472617669732d63692e6f72672f5a696e676c652f5048502d456e756d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Zingle/PHP-Enum)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5100a38beaa9b7f4ca0158eb6236098a9eacbf544d7f7e0a85c8eccfa2f7f0eb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5a696e676c652f5048502d456e756d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Zingle/PHP-Enum/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/24767d0b4afb65e461727acb33cfb270be20391681411c36b5b46c90fe870f04/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5a696e676c652f5048502d456e756d2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Zingle/PHP-Enum/?branch=master)

Provides a simple enum like interface for constants.

Install
-------

[](#install)

Via composer

```
$ composer require zingle-com/php-enum
```

Requirements
------------

[](#requirements)

- PHP 7.1

Documentation
-------------

[](#documentation)

See [documentation](docs/index.md).

Testing
-------

[](#testing)

```
$ vendor/bin/phpunit
```

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

[](#contributing)

See [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Zachary Quintana](https://github.com/zquintana)
- [Zingle Team](https://github.com/Zingle)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~37 days

Recently: every ~29 days

Total

8

Last Release

2597d ago

### Community

Maintainers

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

---

Top Contributors

[![zquintana](https://avatars.githubusercontent.com/u/130444?v=4)](https://github.com/zquintana "zquintana (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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