This package offers strongly typed enums in PHP. We don't use a simple "value" representation, so you're always working with the enum object. This allows for proper autocompletion and refactoring in IDEs.
Here's how enums are created with this package:
class StatusEnum extends Enum
And this is how they are used:
public function setStatus(StatusEnum $status): void
$this->status = $status;