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

Chromephp Laravel Package

ccampbell/chromephp

ChromePhp sends PHP logs and variables directly to the Chrome DevTools console using the Chrome Logger protocol, so you can debug without cluttering page output or digging through server logs. Just include the class and call ChromePhp::log().

Deep Wiki
Context7

Product Decisions This Supports

  • Developer-experience (DX) investment decisions: chromephp is a low-cost lever for reducing time spent on var_dump() / error_log() debugging loops. Useful as a data point when prioritizing "internal tooling and onboarding velocity" against feature work.
  • Build vs. buy for internal debug tooling: if your team has ever discussed writing an in-house "log PHP state to the browser" helper, this is the buy option — a single class, ~1.4k stars, no service dependency. Decision: adopt as a require-dev convenience rather than staff an internal utility.
  • Debugging AJAX/JSON endpoints without corrupting output: the package transmits data via the X-ChromeLogger-Data response header, so it doesn't pollute response bodies. This supports decisions about how the team inspects backend state in API-first Laravel apps where dump()/dd() breaks client parsing.
  • Environment support strategy: relevant where Xdebug or server-side debugger ports aren't available (shared hosting, locked-down containers, some PaaS runtimes), informing whether the team standardizes on Xdebug/STEP debugging or a header-based fallback.
  • Support and maintenance risk register: last meaningful activity is old and the workflow depends on a browser extension plus the ChromeLogger protocol. This feeds a "dev-only, non-critical, replaceable" classification rather than a platform dependency.
  • Not a production observability decision: this is explicitly out of scope for logging, alerting, audit trails, or incident response — those go to PSR-3 loggers, Laravel Telescope, Sentry, or OpenTelemetry. Treating it as such would be a misallocation.

When to Consider This Package

Adopt when:

  • The team is PHP/Laravel-focused and debugs primarily in Chrome/Chromium-based browsers.
  • You need a zero-config, dev-only way to inspect nested arrays/objects from controllers, services, or middleware without installing a server-side extension.
  • You're debugging endpoints whose response body must stay valid JSON/HTML.
  • You want a throwaway diagnostic in a legacy or constrained environment where Xdebug isn't installable.
  • You're willing to constrain usage to require-dev, guard calls behind APP_DEBUG, and accept that the dependency may never be updated.

Look elsewhere when:

  • You need maintained, PHP 8.x-verified tooling with an active release cadence — evaluate spatie/ignition, Symfony VarDumper, Laravel Debugbar, Clockwork, or Ray (paid, but actively developed and framework-integrated).
  • Debugging occurs in CLI, queue workers, scheduled jobs, or webhooks — there is no browser console to receive the header.
  • The team is browser-heterogeneous (Firefox/Safari) or your organization restricts browser extensions.
  • You need structured, searchable, or retained logs — use a PSR-3 logger with context, or Telescope for local request inspection.
  • Header-based transport is a concern: headers can be dropped by proxies/FastCGI configurations, must be set before output is flushed, and can inadvertently leak sensitive variable contents into response headers if left enabled outside development.
  • The package's low opportunity score and stale maintenance signal that it's a convenience, not a foundation — avoid wrapping core code or team standards around it.

How to Pitch It (Stakeholders)

To executives: This is a small, free, development-only utility that lets engineers inspect PHP state directly in the browser console instead of adding temporary print statements and redeploying. It carries zero production footprint and no licensing cost. It is not a strategic platform choice and does not replace our logging or monitoring stack — it's a minor DX convenience to be approved, not funded. Expect modest, hard-to-quantify time savings on debugging; do not model it as a reliability improvement.

To engineering: One composer require-dev line and a static call get structured PHP data into the Chrome console via the X-ChromeLogger-Data header, which is genuinely useful for JSON/AJAX endpoints where dump() breaks the client. Caveats are real: it requires the ChromeLogger browser extension, only works in web requests (no CLI/queues), must run before headers are sent, and the package is effectively unmaintained — pin the version, keep it out of require, gate it behind debug flags, and treat it as replaceable. If we want a durable answer, budget a short evaluation of Debugbar/Clockwork/Ray instead.

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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator