Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WizdamDebugToolbar .gitignore
# DebugToolbar .gitignore

# Dependencies
vendor/
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ composer require wizdam/debug-toolbar:@dev
### Inisialisasi Dasar

```php
use WizdamDebugToolbar\DebugToolbar;
use DebugToolbar\DebugToolbar;

$config = require 'config/wizdamtoolbar.php';
$toolbar = new DebugToolbar($config);
Expand All @@ -63,7 +63,7 @@ Cocok untuk aplikasi PHP tanpa *middleware stack*.
```php
define('WIZDAM_DEBUG', true); // Aktifkan hanya di development!

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

// ... logika aplikasi Anda berjalan normal ...
Expand All @@ -76,8 +76,8 @@ $middleware->endBuffer(); // Toolbar otomatis di-inject di akhir HTML
Gunakan `AdodbDatabaseAdapter` untuk mencatat query ADODB:

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

$dbAdapter = new AdodbDatabaseAdapter();
$toolbar->addCollector(new DatabaseCollector($dbAdapter));
Expand All @@ -88,7 +88,7 @@ $toolbar->addCollector(new DatabaseCollector($dbAdapter));
Untuk aplikasi modern yang sudah memiliki *middleware stack*:

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

---
Expand Down Expand Up @@ -132,7 +132,7 @@ return [
Implementasikan `CollectorInterface`:

```php
use WizdamDebugToolbar\Interfaces\CollectorInterface;
use DebugToolbar\Interfaces\CollectorInterface;

class CacheCollector implements CollectorInterface
{
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- Confirm the problem and determine the affected versions.
- Audit code to find any potential similar problems.
- Prepare fixes for all releases still under maintenance. These fixes will be released as fast as possible.
- Publish security advisories at https://github.com/mokesano/WizdamDebugToolbar/security/advisories
- Publish security advisories at https://github.com/mokesano/DebugToolbar/security/advisories

Check notice

Code scanning / Remark-lint (reported by Codacy)

Warn for literal URLs in text. Note

[no-literal-urls] Don’t use literal URLs without angle brackets
Comment thread
mokesano marked this conversation as resolved.
Dismissed

## Comments on this Policy

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "wizdamdebug/debug-toolbar",
"name": "wizdam/debug-toolbar",
"description": "Standalone Debug Toolbar based on CodeIgniter4 DebugBar - Framework Agnostic",
"type": "library",
"license": "MIT",
Expand All @@ -10,8 +10,8 @@
"debugbar",
"debug",
"toolbar",
"wizdam",
"ojs",
"sciecola",
"lumera",
"adodb",
"php84"
],
Expand All @@ -35,17 +35,17 @@
},
"autoload": {
"psr-4": {
"WizdamDebugToolbar\\": "src/"
"DebugToolbar\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"WizdamDebugToolbar\\Tests\\": "tests/"
"DebugToolbar\\Tests\\": "tests/"
}
},
"extra": {
"wizdam": {
"compatible-with": "OJS 2.4.8.5+",
"compatible-with": "Lumera and legacy systems running PHP 8.0+",
"php-versions": ["8.0", "8.1", "8.2", "8.3", "8.4"],
"based-on": "CodeIgniter4 4.7.2 DebugBar (MIT License)"
}
Expand Down
48 changes: 24 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions config/wizdamtoolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
* Perubahan dari versi CI4:
* - `extends BaseConfig` dihapus — file ini mengembalikan array PHP biasa
* - `SYSTEMPATH` diganti dengan path relatif berbasis __DIR__
* - Namespace CI4 collector diganti dengan namespace WizdamDebugToolbar
* - Namespace CI4 collector diganti dengan namespace DebugToolbar
* - Ditambahkan: `baseURL`, `historyPath`, `environment`, `startTime`
*
* Cara penggunaan:
* $config = require 'path/to/config/wizdamtoolbar.php';
* $debugBar = new \WizdamDebugToolbar\DebugToolbar($config);
* $debugBar = new \DebugToolbar\DebugToolbar($config);
*
* Override per-instalasi:
* $debugBar = new \WizdamDebugToolbar\DebugToolbar([
* $debugBar = new \DebugToolbar\DebugToolbar([
* 'baseURL' => 'https://ojs.example.com',
* 'historyPath' => '/var/www/ojs/cache/debugbar/',
* 'maxHistory' => 10,
Expand All @@ -33,13 +33,13 @@
// Hapus atau komentari collector yang tidak dibutuhkan.
// Urutan menentukan urutan tab di toolbar.
'collectors' => [
\WizdamDebugToolbar\Collectors\Timers::class,
\WizdamDebugToolbar\Collectors\Database::class,
\WizdamDebugToolbar\Collectors\Logs::class,
\WizdamDebugToolbar\Collectors\Views::class,
\WizdamDebugToolbar\Collectors\Files::class,
\WizdamDebugToolbar\Collectors\Routes::class,
\WizdamDebugToolbar\Collectors\Events::class,
\DebugToolbar\Collectors\Timers::class,
\DebugToolbar\Collectors\Database::class,
\DebugToolbar\Collectors\Logs::class,
\DebugToolbar\Collectors\Views::class,
\DebugToolbar\Collectors\Files::class,
\DebugToolbar\Collectors\Routes::class,
\DebugToolbar\Collectors\Events::class,
],

// ---------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion phpunit.dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
failOnWarning="true"
>
<testsuites>
<testsuite name="WizdamDebugToolbar">
<testsuite name="DebugToolbar">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
4 changes: 2 additions & 2 deletions src/Adapters/AdodbDatabaseAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace WizdamDebugToolbar\Adapters;
namespace DebugToolbar\Adapters;

use WizdamDebugToolbar\Interfaces\DatabaseAdapterInterface;
use DebugToolbar\Interfaces\DatabaseAdapterInterface;

/**
* AdodbDatabaseAdapter
Expand Down
4 changes: 2 additions & 2 deletions src/Adapters/WizdamRouterAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace WizdamDebugToolbar\Adapters;
namespace DebugToolbar\Adapters;

use WizdamDebugToolbar\Interfaces\RouterInterface;
use DebugToolbar\Interfaces\RouterInterface;

/**
* WizdamRouterAdapter
Expand Down
4 changes: 2 additions & 2 deletions src/Collectors/BaseCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* This file is part of WizdamDebugToolbar library.
* This file is part of DebugToolbar library.
*
* (c) Wizdam Frontedge <info@wizdam.org>
*
Expand All @@ -19,7 +19,7 @@
* ---
*/

namespace WizdamDebugToolbar\Collectors;
namespace DebugToolbar\Collectors;

/**
* Base Toolbar collector
Expand Down
4 changes: 2 additions & 2 deletions src/Collectors/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* This file is part of WizdamDebugToolbar library.
* This file is part of DebugToolbar library.
*
* (c) Wizdam Frontedge <info@wizdam.org>
*
Expand All @@ -19,7 +19,7 @@
* ---
*/

namespace WizdamDebugToolbar\Collectors;
namespace DebugToolbar\Collectors;

/**
* Debug toolbar configuration
Expand Down
6 changes: 3 additions & 3 deletions src/Collectors/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);

/**
* This file is part of WizdamDebugToolbar library.
* This file is part of DebugToolbar library.
*
* (c) Wizdam Frontedge <info@wizdam.org>
*
Expand All @@ -19,9 +19,9 @@
* ---
*/

namespace WizdamDebugToolbar\Collectors;
namespace DebugToolbar\Collectors;

use WizdamDebugToolbar\Interfaces\DatabaseAdapterInterface;
use DebugToolbar\Interfaces\DatabaseAdapterInterface;

/**
* Collector for the Database tab of the Debug Toolbar.
Expand Down
Loading
Loading