Fast Forward Enum
fast-forward/enum
is a PHP 8.3+ library for enum ergonomics, reusable
enum catalogs, and small behavioral helpers that stay framework-agnostic.
The package is designed for developers who want:
- convenience helpers such as
values(),names(), maps, and lookups - reusable enum catalogs grouped by domain instead of one giant
Commonbucket - a clean, typed way to model small behaviors such as reversible sort directions or state-machine transitions
- documentation and examples that are approachable for first-time users
If you are new to the package, start with
Getting Started and Usage. They explain the
difference between traits, EnumHelper
, and the packaged enums, which
is the main conceptual jump for most first-time users.
If you already know the problem you want to solve, continue with API Reference and Advanced Topics for helper method details, namespace design, workflow traits, and integration guidance.
Useful links
Contents
- Getting Started
- Usage
- API Reference
- Advanced Topics
- Links
-
FAQ
- Why are interfaces not in Contracts?
- Is this package framework-specific?
- Should I use the packaged enums everywhere?
- Why both traits and EnumHelper?
- Does StateMachine\\HasTransitions replace a workflow engine?
- Is ComparisonResult a PHP polyfill?
- Can I combine many traits in one enum?
- Where should I start as a new user?
- How do I use the package from a container or framework?
- What should I check if autoloading looks broken after adding a new enum?
- How do I decide between packaged enums and application-specific enums?
- Compatibility