Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Api Platform Profiler Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

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:

  1. What is our actual backend stack for this surface — Symfony or Laravel? The answer likely ends the evaluation.
  2. If Symfony: which API Platform major version, and does the bundle declare support for it?
  3. Does API Platform 3's own tooling (or Symfony's native profiler panels) already cover the need, making this redundant?
  4. What specific profiling gap are we trying to close — hydra/JSON-LD serialization cost, data-provider query counts, filter performance? The tool should be justified by a named gap.
  5. Can we fork and own it, and is that cheaper than building a small custom data collector (typically ~1–2 days of work)?

Integration Approach

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:

  1. Fork to an internal namespace and pin the composer.json constraints to our exact Symfony/PHP/API Platform versions.
  2. Validate on a disposable Symfony + API Platform app matching production's version matrix; confirm the collector panel actually renders.
  3. Only then promote to the real repo, strictly under require-dev.
  4. Add a compatibility check to the upgrade runbook so PHP/Symfony/API Platform bumps trigger a fork re-verification.

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.

  • Phase 0 (½ day): Confirm stack. If Laravel → close the evaluation, redirect to Telescope/Debugbar.
  • Phase 1 (1 day): If Symfony, spike on a throwaway app against the exact production version matrix. Go/no-go.
  • Phase 2 (1–2 days): Fork, pin, patch constraints, add CI smoke test.
  • Phase 3: Adopt dev-only, or abandon and build a ~1-day custom collector.

Operational Impact

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:

  • Composer resolution failure on install — most likely outcome, caught in Phase 1.
  • DI container compile error when API Platform or Symfony internals shift — surfaces as a hard boot failure on dev machines, not production.
  • Data collector serialization errors on unusual response shapes — degrades profiler panel, may throw on request.
  • Profiler storage bloat from high-cardinality request capture in shared dev environments.
  • Accidental production inclusion if 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.
  • Silent staleness — the fork stops matching the framework and quietly misreports timings, which is worse than not profiling at all.

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource