PHPackages                             clevis/utils-enum-constants - 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. clevis/utils-enum-constants

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

clevis/utils-enum-constants
===========================

Utility to get values of constants of given prefix.

014PHP

Since Aug 26Pushed 12y ago9 watchersCompare

[ Source](https://github.com/Clevis/utils-enum-constants)[ Packagist](https://packagist.org/packages/clevis/utils-enum-constants)[ RSS](/packages/clevis-utils-enum-constants/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

clevis/utils-enum-constants
===========================

[](#clevisutils-enum-constants)

Utility to get values of constants of given prefix.

Example usage:

```
class Foo
{
	const PREFIX_FOO = 'foo';
	const PREFIX_BAR = 'bar';
	const SOME_UNRELATED_CONSTANT = 'whatever';
}

var_export(Clevis\Utils\EnumConstants::getEnumValues('Foo', 'PREFIX_'));

```

Prints out:

```
array(
	'foo' => 'foo',
	'bar' => 'bar'
)

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2980945?v=4)[roboclevis](/maintainers/roboclevis)[@roboclevis](https://github.com/roboclevis)

---

Top Contributors

[![VaclavSir](https://avatars.githubusercontent.com/u/1473642?v=4)](https://github.com/VaclavSir "VaclavSir (1 commits)")

### Embed Badge

![Health badge](/badges/clevis-utils-enum-constants/health.svg)

```
[![Health](https://phpackages.com/badges/clevis-utils-enum-constants/health.svg)](https://phpackages.com/packages/clevis-utils-enum-constants)
```

###  Alternatives

[deved/magento2-disable-customer-registration

Disable Customer Registration

50133.3k](/packages/deved-magento2-disable-customer-registration)[appwilio/russianpost-sdk

Russian Post (pochta.ru) SDK

4615.7k](/packages/appwilio-russianpost-sdk)

PHPackages © 2026

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