Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 17, 2024 via composer

maximebf/debugbar v1.22.3

Debug bar in the browser for php application
Package summary
Share
0
issues
1
license
4
MIT
Package created
18 Jun 2013
Version published
3 Apr 2024
Maintainers
2
Total deps
4
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
maximebf/debugbar@v1.22.3
psr/log@3.0.0
symfony/polyfill-mbstring@v1.29.0
symfony/var-dumper@v7.0.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
โ“˜ This is a list of maximebf/debugbar 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
psr/log3.0.06.77 kBMIT
prod
symfony/var-dumperv7.0.7-MIT
prod

Visualizations

Frequently Asked Questions

What does maximebf/debugbar do?

The maximebf/debugbar is an ingenious PHP tool that enhances web development by displaying a debug bar in the browser with vital information directly from PHP. It's a convenient tool, eliminating the need for 'var_dump()' in your code, thereby improving the debugging process. The debug bar offers a clean, fast, and user-friendly interface, with the ability to handle AJAX requests. Furthermore, it supports several generic data collectors and their associated view in the bar, along with collectors for prominent libraries. The tool is both flexible and expandable as you can easily create custom collectors. For instance, it includes collectors for PDO, CacheCache, Doctrine, Monolog, Propel, Slim, Symfony Mailer, Swift Mailer, and Twig among others.

How do you use maximebf/debugbar?

Using the maximebf/debugbar is straightforward. It integrates seamlessly with any PHP project, and the easiest way to use it is through the render() function. First, you need to install it using Composer with the command: composer require maximebf/debugbar. Once installed, you can use it in your PHP code. An example use case is as follows:

<?php

// Require the Composer autoloader, if not already loaded
require 'vendor/autoload.php';

use DebugBar\StandardDebugBar;

$debugbar = new StandardDebugBar();
$debugbarRenderer = $debugbar->getJavascriptRenderer();

$debugbar["messages"]->addMessage("hello world!");
?>
<html>
    <head>
        <?php echo $debugbarRenderer->renderHead() ?>
    </head>
    <body>
        ...
        <?php echo $debugbarRenderer->render() ?>
    </body>
</html>

Here, we have used the MessagesCollector to add a message to the DebugBar. The StandardDebugBart also includes other collectors, such as MemoryCollector, PhpInfoCollector,RequestDataCollector, TimeDataCollector, and ExceptionsCollector.

Where are the maximebf/debugbar docs?

The comprehensive documentation for maximebf/debugbar can be found here. It includes detailed guidelines about how to get the most out of this powerful tool, elaborating on its rich features and capabilities. Here, you can grasp everything, from the basic integration and quick start guide to creating your own collector and advanced usage of the tool. With great explanatory content and illustrative examples, navigating the API has never been easier. The documentation helps provide accurate and updั‚o-the-minute information, ready to assist in optimizing your use of the maximebf/debugbar.