PHPackages                             grizz-it/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. grizz-it/enum

ActiveLibrary

grizz-it/enum
=============

Enumerable objects for PHP applications.

1.1.0(5y ago)1815↑650%2MITPHPPHP ^8.0

Since Apr 8Pushed 5y ago2 watchersCompare

[ Source](https://github.com/grizz-it/enum)[ Packagist](https://packagist.org/packages/grizz-it/enum)[ RSS](/packages/grizz-it-enum/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (2)

[![Build Status](https://camo.githubusercontent.com/d25841877bf8d79057546d1357ad8ba5dbce32c5936b688e0b2cf02ca7df07e1/68747470733a2f2f7472617669732d63692e636f6d2f6772697a7a2d69742f656e756d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/grizz-it/enum)

GrizzIT Enum
============

[](#grizzit-enum)

GrizzIT Enum is an implementation of enumerable objects for PHP. It uses two interpreter hooks to allow type-hinting and simply retrieving the value. The enums can be used to create a strict dependency within object by being able to typehint the class of the enumerable object.

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

[](#installation)

To install the package run the following command:

```
composer require grizz-it/enum

```

Usage
-----

[](#usage)

Please see the [documentation](docs/index.md) for information on the usage of this package.

Change log
----------

[](#change-log)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

MIT License
-----------

[](#mit-license)

Copyright (c) GrizzIT

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

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 ~320 days

Total

2

Last Release

1852d ago

PHP version history (2 changes)1.0.0PHP ^7.2

1.1.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6463856a0e35d69706d07c4e44fd1c9e67e27c34efeeef5334b238b1b3410e9c?d=identicon)[GrizzIT](/maintainers/GrizzIT)

---

Top Contributors

[![mfrankruijter](https://avatars.githubusercontent.com/u/8653925?v=4)](https://github.com/mfrankruijter "mfrankruijter (2 commits)")

---

Tags

enumphpenum

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/grizz-it-enum/health.svg)

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

###  Alternatives

[myclabs/php-enum

PHP Enum implementation

2.7k225.2M586](/packages/myclabs-php-enum)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.6M92](/packages/bensampo-laravel-enum)[dasprid/enum

PHP 7.1 enum implementation

379140.5M9](/packages/dasprid-enum)[spatie/enum

PHP Enums

84128.0M60](/packages/spatie-enum)[marc-mabe/php-enum

Simple and fast implementation of enumerations with native PHP

49340.7M89](/packages/marc-mabe-php-enum)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4756.8M12](/packages/fresh-doctrine-enum-bundle)

PHPackages © 2026

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