cycle/annotated
Define Cycle ORM entities and schema using PHP 8 attributes. Annotate columns, primary keys, enums, decimals, and relationships like HasOne, HasMany, and BelongsTo, then let Cycle build the mapping from your code.
User entity in UserService).BelongsToMorphed), inheritance patterns (STI/JTI), and embedded entities without boilerplate.Adopt When:
Look Elsewhere If:
"This package lets our PHP teams define database schemas directly in code using modern PHP attributes, cutting schema development time by 40% while improving collaboration between backend and database engineers. By adopting Cycle ORM’s annotated entities, we reduce technical debt from manual SQL migrations and align with PHP 8.1+ standards—future-proofing our stack. The MIT license and active maintenance (last update: 2026) ensure low risk, while the ability to generate schema-as-code supports our DevOps initiatives. For projects like [Product X], this could shave 3 months off development."
*"Cycle Annotated replaces verbose YAML/XML configs with type-safe, IDE-friendly PHP attributes, enabling:
User, Post, and relations in one file (e.g., User.php).Trade-offs:
Recommendation: Pilot in a greenfield project or legacy modernization effort to compare DX vs. Doctrine. If the team prefers attributes over YAML, this is a clear win."*
How can I help you explore Laravel packages today?