zolex/vom
zolex/vom generates Vuex ORM models from your Laravel Eloquent models. It inspects models, relationships, and casts to scaffold JavaScript model classes, helping keep frontend and backend schemas aligned while reducing manual duplication.
toArray()/fromArray() methods or ad-hoc transformers across the codebase.Consider VOM when:
Look elsewhere when:
JsonResource/casts are lighter weight.For executives: VOM lets us define how data maps to and from our objects in configuration rather than custom code, reducing bespoke mapping logic we have to maintain and test. The 2.2.1 release adds caching and pre-compiled expressions, so this approach is now meaningfully faster under load — removing a previously legitimate performance objection and making it viable for high-traffic endpoints. Net effect: less maintenance surface, faster iteration on payload formats, and acceptable performance at scale.
For engineering: This is a declarative object mapper for Laravel/PHP built on Symfony Expression Language. 2.2.1 adds two things that matter: (1) standard PHP functions are now available inside expressions, so formatting/normalization logic can be expressed declaratively instead of in custom normalizers; (2) expressions are cached and pre-compiled, cutting per-request interpretation overhead. If we adopt it, plan for team familiarity with Expression Language, and keep an eye on debuggability of complex expressions. Worth a spike against our current transformer approach to measure both developer velocity and runtime cost before committing.
How can I help you explore Laravel packages today?