minionfactory/raw-hydrator
Raw Hydrator is a small PHP package for turning raw data (arrays/records) into hydrated objects with minimal overhead. Useful for fast mapping of database results or API payloads into DTOs/entities without a full ORM.
Adopt if:
SELECT * FROM users JOIN orders JOIN products).with() clauses or eager loading).Look elsewhere if:
For Executives: "This package lets us fetch complex, related data in one database call instead of multiple queries, cutting latency by ~30–50% for heavy operations like reports or batch jobs. It’s a lightweight, MIT-licensed solution that replaces custom hydration code—saving dev time while improving scalability. Low risk (MIT license, minimal dependencies), high reward for performance-critical paths."
For Engineering: *"Raw-Hydrator solves a pain point: hydrating Eloquent models from raw SQL with relations in a single round-trip. Perfect for:
Tradeoffs:
For Developers:
*"Need to run a raw SQL query but want Eloquent models back? This package hydrates models + relations in one go—no manual loops or Model::hydrate(). Example:
$users = RawHydrator::hydrate(User::class, 'SELECT * FROM users JOIN orders WHERE users.id = orders.user_id');
Best for: Complex joins, legacy systems, or when you need to bypass Eloquent’s query builder. Not for: Simple queries or dynamic hydration needs."*
How can I help you explore Laravel packages today?