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.
Verdict: Reject for adoption. Score (0.0275), 11 stars, 0 dependents, and an archived repository place this well below any reasonable adoption threshold. The decisive issue, however, is category mismatch rather than popularity.
Architecture fit. Despite the framing as a "Laravel/PHP package," lepiaf/sapient-bundle is a Symfony bundle — it ships a Bundle subclass, a DI extension, and a configuration tree intended to be registered in a Symfony kernel. Laravel has no equivalent registerable-bundle concept. The bundle layer is therefore unusable in a Laravel application, and the only reusable artifact is the underlying lepiaf/sapient library, which offers an object-oriented abstraction over PHP superglobals. That capability is largely redundant in Laravel: the framework already injects a fully-hydrated Illuminate\Http\Request into the container, exposes typed InputBag/ParameterBag accessors, and resolves request data consistently through middleware — including under Octane. We would be introducing a parallel, framework-unaware data-access path that competes with the one Laravel already owns.
Integration feasibility. Low. An archived repository means no upstream fixes, no PHP 8.x/Symfony 7 compatibility guarantees, and no security response. With zero dependents there is no field validation — no evidence anyone has run this in production, and no community to consult when behavior diverges. Any use implies we fork and vendor it, converting a "dependency" into owned code.
Technical risk.
composer conflicts with Laravel's transitive symfony/http-foundation and symfony/console pins.Key questions.
InputBag, validation, middleware) fails to cover it?Stack fit. Poor for a Laravel estate. There is no supported installation path: the bundle cannot be registered, its service definitions cannot be loaded, and its config tree is inert. A Laravel integration would consist solely of lepiaf/sapient consumed as a plain library — at which point the "bundle" in the package name is dead weight we would be pulling in for nothing.
Migration path. Recommended path is no migration — do not adopt. If the underlying capability is genuinely required, the correct migration is a pattern port, not a package install: implement the accessor behind a small internal interface with a single Laravel service-provider binding, backed by Illuminate\Http\Request. The surface area is small enough that reimplementation is cheaper than forking, and it keeps the code inside our own support boundary and test suite.
If leadership overrides and requires this specific code, the only viable path is: fork to an internal namespace → strip the Symfony bundle layer → pin to the library only → wrap behind an internal interface → ship through our private Composer registry.
Compatibility. Must be validated empirically before any decision: PHP version constraints in composer.json, Symfony component ranges, PSR-7/PSR-15 interfaces, and whether composer why-not against our current Laravel skeleton produces conflicts. Treat composer require succeeding in a scratch project as necessary but not sufficient — a Symfony bundle can coexist as an unused package while contributing nothing.
Sequencing (if pursued).
Step 1 should be expected to terminate the evaluation.
Maintenance. The dominant cost. Archived status transfers 100% of maintenance to us on day one: PHP minor-version breakage, Symfony component deprecations dragged in transitively, and security patching of a library nobody else is watching. Our SCA tooling will flag it continuously, generating either noise or an accepted-risk exception that must be re-justified each quarter. Realistically this is a few days per year of unplanned work for a capability we could own outright in under a day.
Support. None upstream. No maintainer response, no issue triage, no release cadence. Internal support burden lands on whichever team adopts it, and that team inherits a package no one on staff has operated before. Documentation is thin, so institutional knowledge is one or two engineers deep.
Scaling. Runtime cost is negligible — this is a thin wrapper, not a hot path, and it will not be a performance bottleneck. The scaling concern is organizational: the number of services that can safely depend on an unmaintained fork is small, and each additional consumer multiplies our patch-propagation obligation. Breadth of adoption is the risk, not throughput.
Failure modes.
Ramp-up. Low technical learning curve (the abstraction is small and the underlying concept is basic PHP), but low transfer value: time invested teaches nothing reusable. The real ramp-up cost is the archaeology of understanding why the dependency exists at all, which is precisely the question that should be answered — and, in most cases, answered by removing it.
Recommendation. Do not adopt. Treat lepiaf/sapient-bundle as a reference pattern at most. If a concrete gap exists, close it with a Laravel-native adapter we own; if the organization separately operates Symfony applications, revisit lepiaf/sapient there — but archived status and zero dependents still argue against it.
How can I help you explore Laravel packages today?