lepiaf/sapient-bundle
A Symfony bundle that integrates Sapient, the PHP library for fast, flexible object hydration and serialization. Register and configure Sapient services, map data to typed objects, and keep your Symfony apps clean with minimal boilerplate.
sapient). The real build/buy decision is about the underlying library; the bundle only buys you DI registration, config schema, and autoconfiguration. That is typically a day or two of glue code, so the bundle's contribution to the decision is marginal either way.Consider it when:
sapient library, and you're on a Symfony version and PHP version the bundle's composer.json actually permits (verify this first — archived bundles frequently pin to EOL Symfony majors).Look elsewhere when:
services.yaml block frequently replaces the bundle entirely, at lower total cost than owning a fork.First action before any decision: confirm what sapient actually does and whether it's still maintained. The bundle's value is entirely derivative — if the wrapped library is also stale, this is a non-starter regardless of the bundle's ergonomics.
One line: A small MIT-licensed convenience wrapper that is archived and effectively unused, so the question isn't "is it good?" but "are we prepared to own it?"
For executives: Low cost to evaluate, non-trivial cost to depend on. It's glue code, not a platform bet — it saves us maybe a day of Symfony configuration, and in exchange we take on a dependency nobody maintains. Recommend a time-boxed spike only, with the default outcome being "copy the ~50 lines of wiring into our own codebase." Because the wrapper is thin, we keep full optionality: if the underlying capability matters, we adopt the library directly and own the configuration ourselves. No lock-in either way.
For engineering: Treat it as vendored sample code, not a dependency. Read the source (it's small), lift the service definitions and configuration schema into our own bundle or services.yaml, and avoid the archived package in composer.json so it never appears in our dependency graph or security scan. If we do install it, pin the version, document the fork path, and assign an owner.
Decision requested: approve a 1–2 day spike to confirm whether the underlying library meets the need; do not approve production adoption of the bundle itself.
How can I help you explore Laravel packages today?