
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
zappzarapp/devtoolbar
Advanced tools
In-app developer toolbar for PHP applications: timeline, query analyzer, HTTP/cache collectors, exception tracking, request history. Ships the JS UI as a bundled asset (symfony/web-profiler-bundle pattern).
In-app developer toolbar for PHP applications. Renders a mini-bar overlay with collectors for queries, HTTP requests, cache operations, exceptions, timeline phases, and request history, with N+1 detection and configurable performance alerts.
The JavaScript UI ships as a pre-built asset of this PHP package (the
symfony/web-profiler-bundle
pattern): composer require is all a consumer needs — no Node toolchain, no
npm install.
monolog/monolog ^3.0 — MessageCollector extends AbstractProcessingHandlerzappzarapp/security ^1.0 — supplies the per-request CSP nonce for the
injected <script> / <style> tagscomposer require --dev zappzarapp/devtoolbar
Install it as a dev dependency. The toolbar is a development-time surface and its activation guard is fail-closed (see Activation).
Boot the toolbar at the top of your front controller and register an output
buffer callback that injects the toolbar HTML before </body>:
use Zappzarapp\DevToolbar\DevToolbar;
use Zappzarapp\DevToolbar\Guard\DevToolbarGuard;
require __DIR__ . '/../vendor/autoload.php';
if (DevToolbarGuard::isEnabled()) {
$toolbar = DevToolbar::getInstance();
$toolbar->boot();
// injectToolbar() runs when the buffer is flushed — a safe alternative
// to echoing from a shutdown function.
ob_start([$toolbar, 'injectToolbar']);
}
// ... dispatch the request and render the response as usual ...
boot() and injectToolbar() are both no-ops when the guard reports the
toolbar as disabled, so the two calls above are safe to leave in place; guard
them with isEnabled() only to avoid the output-buffer overhead in production.
DevToolbarGuard::isEnabled() is fail-closed — the toolbar stays off
unless a development environment is proven. The decision, in order:
ENABLE_DEV_TOOLBAR — an explicit on/off switch. true (any case) or
1 enables; anything else, including typos, disables. When set, it decides
alone — the environment variables below are not consulted. This is the
one deliberate override of the environment gate (e.g. to enable the toolbar
on a staging system running with production-parity environment values), so
pin it to false in production deployments.APP_ENV, ENV and ZAPPZARAPP_ENV
must equal one of dev, development, local, test, testing
(case-insensitive), and at least one must be set. Conflicts fail closed: a
single non-development value disables the toolbar regardless of the others.production, prod, staging, typos, anything unknown — as
well as a missing environment counts as production → disabled.The guard also disables under the CLI SAPI and for AJAX requests. Values are
read via getenv() with an $_ENV / $_SERVER fallback, so PHP-FPM setups
running with clear_env=yes do not silently fail open.
Injected inline <script> / <style> tags carry the per-request nonce from
zappzarapp/security's NonceRegistry — there is no unsafe-inline
requirement. If your application generates its own nonce, hand it to the
toolbar before boot():
$toolbar->setNonce($cspNonce);
boot() registers the default collectors and starts them. Instrument your
application by fetching a collector and recording operations as they happen:
$queries = $toolbar->getCollector('queries');
$queries?->trackQuery($sql, $bindings, $durationMs);
Available collector names: request, queries, http, cache, messages,
exceptions, timeline, history. See the classes under
Zappzarapp\DevToolbar\DataCollectors for each collector's tracking API.
The toolbar exposes request internals (SQL, request/response data, exception backtraces) to anyone who can render it. Never enable it in production, and treat any environment reachable beyond localhost as production. See SECURITY.md for the full model.
MIT — see LICENSE.
FAQs
In-app developer toolbar for PHP applications: timeline, query analyzer, HTTP/cache collectors, exception tracking, request history. Ships the JS UI as a bundled asset (symfony/web-profiler-bundle pattern).
The composer package zappzarapp/devtoolbar receives a total of 127 weekly downloads. As such, zappzarapp/devtoolbar popularity was classified as not popular.
We found that zappzarapp/devtoolbar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.