enums
CommunityPowerful PHP enums with 7 trait helpers
Authoraronpc
Version1.0.0
Installs0
System Documentation
What problem does it solve?
PHP enums in Laravel projects can become boilerplate-heavy and hard to maintain; this Skill provides a trait-enabled pattern and tooling for clean, scalable enum usage with ArchTech\Enums.
Core Features & Use Cases
- 7 Traits available: InvokableCases, Names, Values, Options, From, Metadata, Comparable to empower enums with helpers, mappings, and metadata.
- Laravel integration: casts in Eloquent, validation rules, and metadata-driven behavior to simplify domain modeling.
- Use Case: Define domain enums in App\Enums and reuse across models, requests, factories, and UI components.
Quick Start
Create a new enum under App\Enums, apply the trait set, and reference it in models, requests, and factories to leverage typed values and metadata.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: enums Download link: https://github.com/aronpc/ai/archive/main.zip#enums Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.