PHPackages                             pd/database-info-panel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. pd/database-info-panel

ActiveLibrary

pd/database-info-panel
======================

Panel for Nette Debug bar which quickly tells you which database you use

v2.0.3(4y ago)3167.2k↓18.8%2MITPHPPHP 7.4.\* || 8.\*

Since Nov 11Pushed 4y ago20 watchersCompare

[ Source](https://github.com/peckadesign/database-info-panel)[ Packagist](https://packagist.org/packages/pd/database-info-panel)[ Docs](https://github.com/peckadesign/database-info-panel)[ RSS](/packages/pd-database-info-panel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (11)Used By (0)

pd/db-info-panel
================

[](#pddb-info-panel)

Panel for Nette Debug bar which quickly tells you which database you use.

Usage
-----

[](#usage)

[![Screenshot](doc/infopanel.png)](doc/infopanel.png)

Install
-------

[](#install)

The best way to install is using Composer: `composer require pd/database-info-panel:@dev`

Another way is [download ZIP archive with last master](https://github.com/peckadesign/database-info-panel/archive/master.zip).

Setup
-----

[](#setup)

Standard configuration with predefined DB name key:

```
parameters:
	database:
		host: 192.168.0.5
		dbname: databasename
		user: username
		password: abcdef

services:
	databaseInfoPanel:
		class: Pd\Diagnostics\DatabaseInfoPanel(%database%)

nette:
	debugger:
		bar:
			- @databaseInfoPanel

```

Standard configuration with predefined DB name key:

```
parameters:
	database:
		database: databasename

services:
	databaseInfoPanel:
		class: Pd\Diagnostics\DatabaseInfoPanel(%database%)

```

Configuration with custom DB name key:

```
parameters:
	database:
		myDbNameKey: databasename

services:
	databaseInfoPanel:
		class: Pd\Diagnostics\DatabaseInfoPanel(%database%, 'myDbNameKey')

```

### Change CSS style of DB name label

[](#change-css-style-of-db-name-label)

```
class MyDatabaseInfoPanelStyleHandler implements Pd\Diagnostics\IDatabaseInfoPanelStyleHandler
{
	private $colors = array('db' => '#F30', 'db_staging' => '#F60', 'db_dev' => '#060', 'db_local' => '#00C');

	public function getStyle($databaseName, $params)
	{
		$style = array();
		if(array_key_exists($databaseName, $this->colors)) {
			$style[] = 'color: '.$this->colors[$databaseName];
		}
		if($databaseName === 'db') $style[] = 'font-weight: bold'; // production mode
		return implode('; ', $style);
	}

}
```

```
nette:
	services:
		databaseInfoPanelStyleHandler: MyDatabaseInfoPanelStyleHandler

	debugger:
		bar:
			- Pd\Diagnostics\DatabaseInfoPanel(%database%)

```

[![Screenshot](doc/custom-color-production.png)](doc/custom-color-production.png)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 65.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~328 days

Recently: every ~108 days

Total

10

Last Release

1613d ago

Major Versions

v1.1.1 → v2.0.0-rc12020-10-11

PHP version history (2 changes)v2.0.0-rc1PHP 7.4.\* || 8.0.\*

v2.0.3PHP 7.4.\* || 8.\*

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a06b8b9ccc59666031194b3a9a2a63664e970e95de26410e818b92a61f911d8?d=identicon)[MilanPala](/maintainers/MilanPala)

![](https://www.gravatar.com/avatar/de7193cf9eb4efed28aa1028b12ff6f19c09ecb88290a25ac55462d5fc2e96cd?d=identicon)[PeckaDesign](/maintainers/PeckaDesign)

---

Top Contributors

[![MilanPala](https://avatars.githubusercontent.com/u/1717814?v=4)](https://github.com/MilanPala "MilanPala (19 commits)")[![vitkutny](https://avatars.githubusercontent.com/u/4031169?v=4)](https://github.com/vitkutny "vitkutny (3 commits)")[![jakubenglicky](https://avatars.githubusercontent.com/u/13773359?v=4)](https://github.com/jakubenglicky "jakubenglicky (2 commits)")[![Jakub-Fajkus](https://avatars.githubusercontent.com/u/13538235?v=4)](https://github.com/Jakub-Fajkus "Jakub-Fajkus (2 commits)")[![PavelJurasek](https://avatars.githubusercontent.com/u/1270132?v=4)](https://github.com/PavelJurasek "PavelJurasek (2 commits)")[![juzna](https://avatars.githubusercontent.com/u/227416?v=4)](https://github.com/juzna "juzna (1 commits)")

---

Tags

debugbartracy

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pd-database-info-panel/health.svg)

```
[![Health](https://phpackages.com/badges/pd-database-info-panel/health.svg)](https://phpackages.com/packages/pd-database-info-panel)
```

###  Alternatives

[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

388283.0k3](/packages/recca0120-laravel-tracy)[runcmf/runtracy

Slim Framework Debugger

7671.8k4](/packages/runcmf-runtracy)[contributte/tracy

Nette Tracy extensions for easy-developing

131.5M5](/packages/contributte-tracy)[milo/vendor-versions

Bar with versions list of vendor libraries for Tracy

19155.1k5](/packages/milo-vendor-versions)[vasek-purchart/tracy-blue-screen-bundle

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

1177.6k](/packages/vasek-purchart-tracy-blue-screen-bundle)[kdyby/html-validator-panel

Nette DebugBar panel for validating the output HTML.

1034.6k3](/packages/kdyby-html-validator-panel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
