Phpstan
PHPStan - PHP Static Analysis Tool
Debug bar in the browser for php application
Displays a debug bar in the browser with information from php.
No more var_dump() in your code!
Note: Debug Bar is for development use only. Never install this on websites that are publicly accessible.
Debugbar has had significant updates in 3.x (January 2026). See the Release Notes for more information and breaking changes.

Features:
Includes collectors for:
Checkout the demo for examples and php-debugbar.com for a live example.
Additional collectors are available here:
Integrations with other frameworks:
(drop me a message or submit a PR to add your DebugBar related project here)
The best way to install DebugBar is using Composer with the following command:
composer require --dev php-debugbar/php-debugbar
DebugBar is very easy to use and you can add it to any of your projects in no time.
The easiest way is using the render() functions
<?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>
The DebugBar uses DataCollectors to collect data from your PHP code. Some of them are
automated but others are manual. Use the DebugBar like an array where keys are the
collector names. In our previous example, we add a message to the MessagesCollector:
$debugbar["messages"]->addMessage("hello world!");
StandardDebugBar activates the following collectors:
MemoryCollector (memory)MessagesCollector (messages)PhpInfoCollector (php)RequestDataCollector (request)TimeDataCollector (time)ExceptionsCollector (exceptions)Learn more about DebugBar in the docs.
To run the demo, clone this repository and start the Built-In PHP webserver from the demo folder:
composer run demo
Then visit http://localhost:8000/
To test, run php vendor/bin/phpunit.
To debug Browser tests, you can run PANTHER_NO_HEADLESS=1 vendor/bin/phpunit --debug. Run vendor/bin/bdi detect drivers to download the latest drivers.
When contributing to the JavaScript codebase:
npm run lint and npm run build before committingnpm run lint:fix for automatic fixes where possibleWhen contributing to the PHP codebase:
composer check-style and composer analyse before committing.php -S localhost:8000 demo/)PHPStan - PHP Static Analysis Tool
Instant Upgrade and Automated Refactoring of any PHP code
Highly opinionated mocking framework for PHP 5.3+
Provides mechanisms for walking through any arbitrary PHP variable
Neue Version verfügbar.