PHPackages                             wizdamdebug/debug-toolbar - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. wizdamdebug/debug-toolbar

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

wizdamdebug/debug-toolbar
=========================

Standalone Debug Toolbar based on CodeIgniter4 DebugBar - Framework Agnostic

v1.0.2.0(1w ago)10MITPHPPHP ^8.0CI passing

Since May 12Pushed 6d agoCompare

[ Source](https://github.com/mokesano/DebugToolbar)[ Packagist](https://packagist.org/packages/wizdamdebug/debug-toolbar)[ GitHub Sponsors](https://github.com/mokesano)[ RSS](/packages/wizdamdebug-debug-toolbar/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

🧰 Debug Toolbar - Wizdam
========================

[](#-debug-toolbar---wizdam)

**Standalone, framework-agnostic debugging toolbar untuk aplikasi PHP. Diekstraksi dan direkayasa ulang dari [CodeIgniter 4 Debug Toolbar](https://github.com/codeigniter4/CodeIgniter4) agar dapat digunakan di luar ekosistem CI4 — termasuk aplikasi legacy seperti OJS 2.4.8.5.**

 [![PHP Version](https://camo.githubusercontent.com/06958b90b0ec08a6950abc90bef0e435046005ba59d4793a727dc0f5ff1d9d94/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d5e382e302d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://github.com/mokesano/DebugToolbar) [![License](https://camo.githubusercontent.com/7b032738aeb4a8dd7ec78c4402e078ca8c196b0e528c117bbd78088c9a036988/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75653f7374796c653d666f722d7468652d6261646765)](https://github.com/mokesano/DebugToolbar/blob/master/LICENSE) [![Packagist](https://camo.githubusercontent.com/1a7d28e6d28c07c9bd1f2fa0bddc1009f4ad11f5f45b7c137dfdb7e26acde410/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d77697a64616d25324664656275672d2d746f6f6c6261722d4632384431413f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/wizdam/debug-toolbar) [![Build Status](https://camo.githubusercontent.com/17bca7275f057706c0529bd72d3e8688a547ac2f2fff9feb4b87a130563a96db/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e3f7374796c653d666f722d7468652d6261646765266c6f676f3d6769746875622d616374696f6e73266c6f676f436f6c6f723d7768697465)](https://github.com/mokesano/DebugToolbar/actions)

---

✨ Mengapa Debug Toolbar - Wizdam?
---------------------------------

[](#-mengapa-debug-toolbar---wizdam)

SituasiSolusiAnda ingin melihat query database yang lambat di aplikasi legacy OJS.Aktifkan toolbar, dan *DatabaseCollector* akan mencatat semua query ADODB beserta durasinya.Anda penasaran *view* atau *template* mana yang paling lama dirender.*ViewsCollector* menampilkan daftar view dan waktu rendering masing-masing.Anda perlu tahu rute mana yang *match* dengan request saat ini.*RoutesCollector* akan menunjukkan rute, *controller*, dan parameter.Anda ingin memantau *event* yang di-*trigger* selama request.*EventsCollector* menyediakan timeline event.Toolbar harus bekerja tanpa mengganggu framework utama.Dirancang *framework-agnostic*, bisa diintegrasikan via *output buffering* atau *middleware*.---

🔧 Instalasi
-----------

[](#-instalasi)

### Via Composer (Direkomendasikan)

[](#via-composer-direkomendasikan)

```
composer require wizdam/debug-toolbar
```

### Integrasi ke Proyek Development

[](#integrasi-ke-proyek-development)

Tambahkan repository ke `composer.json` proyek Anda:

```
composer config repositories.wizdam-debug-toolbar vcs https://github.com/mokesano/DebugToolbar.git
composer require wizdam/debug-toolbar:@dev
```

> **Dependensi opsional**: `psr/http-message` (untuk integrasi PSR-7) dan `psr/simple-cache` (untuk *history storage*). Tidak ada dependensi wajib lainnya.

---

⚡ Contoh Penggunaan
-------------------

[](#-contoh-penggunaan)

### Inisialisasi Dasar

[](#inisialisasi-dasar)

```
use DebugToolbar\DebugToolbar;

$config = require 'config/wizdamtoolbar.php';
$toolbar = new DebugToolbar($config);
$toolbar->run();
```

### Integrasi Aplikasi Legacy (Output Buffering)

[](#integrasi-aplikasi-legacy-output-buffering)

Cocok untuk aplikasi PHP tanpa *middleware stack*.

```
define('WIZDAM_DEBUG', true); // Aktifkan hanya di development!

$middleware = new \DebugToolbar\Middleware\DebugToolbarMiddleware($toolbar);
$middleware->startBuffer();

// ... logika aplikasi Anda berjalan normal ...

$middleware->endBuffer(); // Toolbar otomatis di-inject di akhir HTML
```

### Integrasi Database ADODB

[](#integrasi-database-adodb)

Gunakan `AdodbDatabaseAdapter` untuk mencatat query ADODB:

```
use DebugToolbar\Adapters\AdodbDatabaseAdapter;
use DebugToolbar\Collectors\DatabaseCollector;

$dbAdapter = new AdodbDatabaseAdapter();
$toolbar->addCollector(new DatabaseCollector($dbAdapter));
```

### Integrasi PSR-15 Middleware

[](#integrasi-psr-15-middleware)

Untuk aplikasi modern yang sudah memiliki *middleware stack*:

```
$app->add(new \DebugToolbar\Middleware\DebugToolbarMiddleware($toolbar));
```

---

🧩 Fitur Utama
-------------

[](#-fitur-utama)

KategoriKolektor / Fitur⏱️ **Timers**Benchmark &amp; timeline eksekusi kode🗄️ **Database**Query logging (ADODB, PDO, Doctrine)🛣️ **Routes**Inspector rute, *controller*, parameter📄 **Views**Template *render tracker* dengan durasi📁 **Files**Daftar file yang di-*include* / *require*📡 **Events***Event listener* &amp; *trigger tracker*📋 **Logs**PSR-3 *log viewer*⚙️ **Config**Informasi konfigurasi aplikasi📜 **History**Riwayat N *request* terakhir---

⚙️ Konfigurasi
--------------

[](#️-konfigurasi)

Salin dan sesuaikan `config/wizdamtoolbar.php`. Beberapa opsi penting:

```
return [
    'collectors'   => [ /* ... daftar collector class ... */ ],
    'maxHistory'   => 20,
    'historyPath'  => sys_get_temp_dir() . '/wizdam-debug-toolbar/',
    'ignoredRoutes'=> ['/_wizdam-debug-toolbar', '/api/'],
    'toolbarState' => 'minimized',   // 'minimized' atau 'maximized'
    'theme'        => 'auto',        // 'light', 'dark', atau 'auto'
    'maxQueryTime' => 100,           // Highlight query lambat (ms)
];
```

---

🧪 Menambah Collector Kustom
---------------------------

[](#-menambah-collector-kustom)

Implementasikan `CollectorInterface`:

```
use DebugToolbar\Interfaces\CollectorInterface;

class CacheCollector implements CollectorInterface
{
    public function getData(): array { /* ... */ }
    public function isEnabled(): bool { /* ... */ }
    public function getBadgeValue(): string|int|null { /* ... */ }
    public function getIcon(): string { /* ... */ }
}
```

Daftarkan ke toolbar:

```
$config['collectors'][] = CacheCollector::class;
$toolbar = new DebugToolbar($config);
```

---

🔍 Troubleshooting
-----------------

[](#-troubleshooting)

MasalahSolusiToolbar tidak munculPastikan `WIZDAM_DEBUG = true` dan *buffer* dimulai sebelum output HTML.Query database tidak tercatatPastikan adapter (mis. `AdodbDatabaseAdapter`) sudah didaftarkan ke `DatabaseCollector`.Error "Class not found"Jalankan `composer dump-autoload` atau periksa konfigurasi *autoloader* manual.History tidak tersimpanPastikan direktori `historyPath` *writable* (chmod 755).---

📄 Lisensi
---------

[](#-lisensi)

**MIT License** — Copyright (c) 2025 Sangia Publishing House. Lihat [LICENSE](https://github.com/mokesano/DebugToolbar/blob/master/LICENSE) untuk teks lengkap.

> Toolbar ini diadaptasi dari [CodeIgniter 4 Debug Toolbar](https://github.com/codeigniter4/CodeIgniter4) (Copyright British Columbia Institute of Technology). Digunakan dengan modifikasi dan izin sesuai lisensi MIT asli.

---

 Dibangun dengan ❤️ sebagai bagian dari ekosistem **Wizdam Frontedge** — platform penerbitan ilmiah modern.

 [![GitHub Stars](https://camo.githubusercontent.com/184fa72a39b0c98a7a7df2ca15ec9694d0eda94bb7b25546f137bfa9970d3b78/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d6f6b6573616e6f2f4465627567546f6f6c6261723f7374796c653d736f6369616c)](https://github.com/mokesano/DebugToolbar/stargazers) [![GitHub Forks](https://camo.githubusercontent.com/be12b2aa30af3741e833b09829172eff4b65b7c70d699f1a58a9d829709d7a96/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6d6f6b6573616e6f2f4465627567546f6f6c6261723f7374796c653d736f6369616c)](https://github.com/mokesano/DebugToolbar/network/members)

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance99

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.9% 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 ~7 days

Total

3

Last Release

13d ago

### Community

Maintainers

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

---

Top Contributors

[![mokesano](https://avatars.githubusercontent.com/u/25093489?v=4)](https://github.com/mokesano "mokesano (53 commits)")[![archoun](https://avatars.githubusercontent.com/u/278231318?v=4)](https://github.com/archoun "archoun (4 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (2 commits)")[![qwen-intl](https://avatars.githubusercontent.com/u/223635574?v=4)](https://github.com/qwen-intl "qwen-intl (2 commits)")

---

Tags

debugdebugbartoolbarphp84adodbojswizdam

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wizdamdebug-debug-toolbar/health.svg)

```
[![Health](https://phpackages.com/badges/wizdamdebug-debug-toolbar/health.svg)](https://phpackages.com/packages/wizdamdebug-debug-toolbar)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.2k130.0M718](/packages/barryvdh-laravel-debugbar)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k26.7M61](/packages/php-debugbar-php-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.2k1.7M54](/packages/fruitcake-laravel-debugbar)[fruitcake/laravel-telescope-toolbar

Toolbar for Laravel Telescope based on Symfony Web Profiler

8061.7M4](/packages/fruitcake-laravel-telescope-toolbar)[vpietri/adm-quickdevbar

QuickDevBar is a developer toolbar for magento 2

578356.6k](/packages/vpietri-adm-quickdevbar)[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

382284.2k3](/packages/recca0120-laravel-tracy)

PHPackages © 2026

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