Download the PHP package zappzarapp/devtoolbar without Composer

On this page you can find all versions of the php package zappzarapp/devtoolbar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package devtoolbar

⚡ zappzarapp/devtoolbar

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.

Requirements

Installation

Install it as a dev dependency. The toolbar is a development-time surface and its activation guard is fail-closed (see Activation).

Usage

Boot the toolbar at the top of your front controller and register an output buffer callback that injects the toolbar HTML before </body>:

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.

Activation

DevToolbarGuard::isEnabled() is fail-closed — the toolbar stays off unless a development environment is proven. The decision, in order:

  1. ENABLE_DEV_TOOLBAR — an explicit on/off switch. true (any case) or 1 enables; anything else, including typos, disables.
  2. Otherwise the first set of APP_ENV then ENV must equal one of dev, development, local, test, testing (case-insensitive).
  3. A missing or unrecognized environment is treated 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.

CSP nonce

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():

Feeding collectors

boot() registers the default collectors and starts them. Instrument your application by fetching a collector and recording operations as they happen:

Available collector names: request, queries, http, cache, messages, exceptions, timeline, history. See the classes under Zappzarapp\DevToolbar\DataCollectors for each collector's tracking API.

Security

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.

License

MIT — see LICENSE.


All versions of devtoolbar with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
monolog/monolog Version ^3.0
zappzarapp/security Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zappzarapp/devtoolbar contains the following files

Loading the files please wait ...