mapado/api-platform-profiler-bundle
A Symfony bundle that adds an API Platform profiler panel to the web debug toolbar, helping you inspect requests, responses, and resource metadata during development.
Architecture fit — fundamental mismatch. Despite the "Laravel/PHP package" framing, this is a Symfony bundle, not a Laravel package. It integrates via Symfony's WebProfilerBundle and the DataCollectorInterface / DI container tag system, and it targets API Platform Server, which is itself a Symfony-first framework. Laravel has no WebProfilerBundle, no data collector contract, and no container tag mechanism equivalent to Symfony's compiler passes. In a Laravel codebase there is no seam to attach this to. Architecture fit against a Laravel stack is effectively zero; it is only coherent on Symfony + API Platform.
Integration feasibility — low, even on the native stack. The repository is archived, has 0 stars and 0 dependents. There is no upstream, no issue triage, no release cadence. Composer metadata (PHP constraint, API Platform constraint, Symfony constraint) is the gate: API Platform moved from 2.x to 3.x with substantial changes to its metadata and data-provider internals, and a profiler that decorates those internals is exactly the kind of package that breaks across that boundary. Feasibility must be proven on a throwaway app before any commitment — do not assume the composer require resolves.
Technical risk — contained but non-trivial. Blast radius is limited by the fact that profiler tooling is dev-only: with correct require-dev placement and --no-dev production builds, it should never ship to production. Residual risks are (a) supply-chain exposure from an unmaintained dependency, (b) silent breakage on PHP/Symfony/API Platform upgrades, and (c) accidental production inclusion leaking internal request/response detail through a web-accessible profiler. All are manageable; none are free.
Key questions to resolve before any decision:
Stack fit. Two mutually exclusive scenarios:
| Scenario | Verdict | Path |
|---|---|---|
| Laravel backend | Not integrable | No equivalent extension point; reimplement intent with Laravel Telescope + Debugbar |
| Symfony + API Platform | Conditionally viable | Dev-only bundle; validate version matrix, likely requires fork |
Laravel path (most likely). There is nothing to integrate. If the underlying need is "profile API request handling, query counts, and serialization cost," satisfy it with first-party-adjacent tooling: Laravel Telescope for request/query/exception capture and laravel-debugbar for per-request timeline. If API Platform-style hypermedia responses are in play, a small custom Telescope watcher is a better investment than any port of this bundle.
Symfony path. Treat this as a vendored fork, not a dependency:
composer.json constraints to our exact Symfony/PHP/API Platform versions.require-dev.Compatibility. Before anything: run composer why-not mapado/api-platform-profiler-bundle against the target app. An archived package with zero dependents almost certainly has stale constraints. Expect to widen them manually and re-test — that is the fork's first commit.
Sequencing.
Maintenance — we become the maintainer. Archived means no upstream fixes, no security advisories, no PHP-version bumps. Any adoption carries an implicit ownership commitment: the fork must be tracked in our dependency inventory, assigned an owner, and reviewed on every framework upgrade. This is the single largest cost and it is permanent.
Support — none. Zero stars and zero dependents means no community, no Stack Overflow corpus, no third-party blog posts, no one to ask. Internal troubleshooting is the only troubleshooting; budget accordingly.
Scaling. Runtime scaling impact is negligible — it is a development-time profiler that is inert when disabled. The relevant "scale" concern is team scale: every developer who onboards on a Symfony stack needs to know the panel exists and that it is a fork, not a normal dependency. On a Laravel stack the question does not arise.
Failure modes to plan for:
require-dev discipline slips — leaks request internals via an exposed profiler route. Mitigate with an allowlist on profiler routes and a CI check that the package is absent from the production lockfile.Ramp-up. For a Symfony team already fluent with the Web Profiler, near-zero — it is another panel. For a Laravel team, there is nothing to ramp up on because there is nothing to install; the ramp-up cost transfers entirely to standing up Telescope/Debugbar equivalents, which is a well-trodden path.
Recommendation. Do not adopt. The package is archived, unadopted, and architecturally mismatched to a Laravel stack; even on Symfony the cost of forking and owning it likely exceeds a purpose-built collector by an order of magnitude. If a concrete profiling gap exists, name it and solve it with maintained tooling — Telescope/Debugbar on Laravel, native profiler panels or a small custom collector on Symfony. Revisit only if the stack is confirmed as Symfony on an API Platform 2.x line and the fork cost is explicitly budgeted.
How can I help you explore Laravel packages today?