flying/struct
flying/struct lets PHP and Laravel projects define typed, immutable data structures: declare fields once; hydrate them from arrays or requests, validate values, and convert back to arrays or JSON. Lightweight, framework-friendly, and easy to drop into existing codebases.
Flying/Struct is a lightweight PHP package for defining typed, structured data objects in Laravel applications. It gives you a clean way to model arrays, DTOs, and nested payloads as immutable value objects, with validation and type casting applied automatically on construction—so your application code deals with predictable objects instead of loose associative arrays.
How can I help you explore Laravel packages today?