zrnik/enum (packagist): Solution for almost 12 years old Stack Overflow question I returned many times to, is finally packed and ready to require!
Keywords: enum