clevis / utils-enum-constants
Utility to get values of constants of given prefix.
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 0
Open Issues: 0
pkg:composer/clevis/utils-enum-constants
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-10-07 06:25:51 UTC
README
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'
)