PHPackages                             concrete5cojp/concrete5\_debugbar - 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. concrete5cojp/concrete5\_debugbar

ActiveConcrete5-package

concrete5cojp/concrete5\_debugbar
=================================

A package to integrate PHP Debug Bar with concrete5 CMS.

0.3(4y ago)5625[2 issues](https://github.com/concrete5cojp/concrete5_debugbar/issues)MITPHP

Since May 13Pushed 1y ago5 watchersCompare

[ Source](https://github.com/concrete5cojp/concrete5_debugbar)[ Packagist](https://packagist.org/packages/concrete5cojp/concrete5_debugbar)[ RSS](/packages/concrete5cojp-concrete5-debugbar/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

concrete5 DebugBar
==================

[](#concrete5-debugbar)

A package to integrate [PHP Debug Bar](http://phpdebugbar.com/) with concrete5 CMS.

Installation
------------

[](#installation)

### Install the debug bar to the site that managed using composer

[](#install-the-debug-bar-to-the-site-that-managed-using-composer)

If you are managing your concrete5 site using [concrete5/composer](https://github.com/concrete5/composer), you can manage this package with composer too.

#### 1. Modify your composer.json file

[](#1-modify-your-composerjson-file)

Add these packages to `"require"` section:

```
"concrete5cojp/concrete5_debugbar": "~0.2",
"slowprog/composer-copy-file": "~0.2"

```

Add these lines to `"extra"` section:

```
"copy-file": {
  "vendor/maximebf/debugbar/src/DebugBar/Resources/": "public/packages/concrete5_debugbar/vendor/maximebf/debugbar/src/DebugBar/Resources/"
}

```

Add `"scripts"` section:

```
"scripts": {
  "post-install-cmd": [
    "SlowProg\\CopyFile\\ScriptHandler::copy"
  ],
  "post-update-cmd": [
    "SlowProg\\CopyFile\\ScriptHandler::copy"
  ]
}

```

When you are managing your concrete5 site using composer, the `vendor` directory is outside from the document root. However, the `debugbar` package has some css/js/images in the `vendor` directory, so you have to move these static files. That's why we need to add the `composer-copy-file` package and the scripts section. You are also able to move `Resources` directory manually.

Entire composer.json example:

```
{
  "name": "concrete5/composer",
  "description": "A fully featured skeleton for a composer managed concrete5 site",
  "type": "project",
  "license": "MIT",
  "prefer-stable": true,
  "autoload": {
    "psr-4": {
      "ConcreteComposer\\" : "./src"
    }
  },
  "require": {
    "composer/installers": "^1.3",
    "concrete5/core": "^8.3",
    "vlucas/phpdotenv": "^2.4",
    "concrete5cojp/concrete5_debugbar": "dev-master",
    "slowprog/composer-copy-file": "~0.2"
  },
  "config": {
    "preferred-install": "dist"
  },
  "extra": {
    "branch-alias": {
      "dev-8.x": "8.x-dev"
    },
    "installer-paths": {
      "public/concrete": ["type:concrete5-core"],
      "public/application/themes/{$name}": ["type:concrete5-theme"],
      "public/packages/{$name}": ["type:concrete5-package"],
      "public/application/blocks/{$name}": ["type:concrete5-block"]
    },
    "copy-file": {
      "vendor/maximebf/debugbar/src/DebugBar/Resources/": "public/packages/concrete5_debugbar/vendor/maximebf/debugbar/src/DebugBar/Resources/"
    }
  },
  "scripts": {
    "post-install-cmd": [
      "SlowProg\\CopyFile\\ScriptHandler::copy"
    ],
    "post-update-cmd": [
      "SlowProg\\CopyFile\\ScriptHandler::copy"
    ]
  }
}
```

#### 2. Download the package

[](#2-download-the-package)

```
$ composer update
```

#### 3. Install the package

[](#3-install-the-package)

```
$ ./public/concrete/bin/concrete5 c5:package-install concrete5_debugbar
```

### Install the debug bar to the site that managed *without* using composer

[](#install-the-debug-bar-to-the-site-that-managed-without-using-composer)

First, download package files

```
$ cd ./packages
$ git clone git@github.com:concrete5cojp/concrete5_debugbar.git
$ cd concrete5_debugbar
```

Then update composer.json as

```
{
    "name": "concrete5cojp/concrete5_debugbar",
    "description": "A package to integrate PHP Debug Bar with concrete5 CMS.",
    "type": "concrete5-package",
    "license": "MIT",
    "minimum-stability": "stable",
    "require": {
        "maximebf/debugbar": ">=1.0.0"
    },
    "replace": {
        "psr/log": "*",
        "symfony/polyfill-mbstring": "*"
    },
    "autoload": {
        "psr-4": {
            "Concrete5Debugbar\\": "src/Concrete5Debugbar/"
        }
    }
}
```

Finally you can install the package

```
$ composer install
$ cd ../../
$ ./concrete/bin/concrete5 c5:package-install concrete5_debugbar
```

Usage
-----

[](#usage)

### Messages

[](#messages)

You can add messages to this tab using compatible usage with [PSR-3 logger](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md).

```
\Core::make('debugbar/messages')->info('hello world');
\Core::make('debugbar/messages')->info($object);
```

[![Messages Tab](https://raw.githubusercontent.com/hissy/concrete5-debugbar/master/screenshots/messages.png)](https://raw.githubusercontent.com/hissy/concrete5-debugbar/master/screenshots/messages.png)

### Timeline

[](#timeline)

Provides a way to log total execution time as well as taking "measures" (ie. measure the execution time of a particular operation).

```
\Core::make('debugbar/time')->startMeasure('longop', 'My long operation');
sleep(2);
\Core::make('debugbar/time')->stopMeasure('longop');
```

[![Timeline Tab](https://raw.githubusercontent.com/hissy/concrete5-debugbar/master/screenshots/time.png)](https://raw.githubusercontent.com/hissy/concrete5-debugbar/master/screenshots/time.png)

### Request

[](#request)

You can check how concrete5 retreive request data in this tab.

[![Request Tab](https://raw.githubusercontent.com/hissy/concrete5-debugbar/master/screenshots/request.png)](https://raw.githubusercontent.com/hissy/concrete5-debugbar/master/screenshots/request.png)

### Database

[](#database)

You can check all sql queries on current request in this tab.

[![Database Tab](https://raw.githubusercontent.com/hissy/concrete5-debugbar/master/screenshots/database.png)](https://raw.githubusercontent.com/hissy/concrete5-debugbar/master/screenshots/database.png)

### Logs

[](#logs)

You can check application logs (same as dashboard/reports/logs but you can quick access!).

[![Logs Tab](https://raw.githubusercontent.com/hissy/concrete5-debugbar/master/screenshots/logs.png)](https://raw.githubusercontent.com/hissy/concrete5-debugbar/master/screenshots/logs.png)

### Environment

[](#environment)

Get some information about the server environment.

[![Environment Tab](screenshots/environment.png)](screenshots/environment.png)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance22

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.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 ~821 days

Total

3

Last Release

1641d ago

### Community

Maintainers

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

---

Top Contributors

[![hissy](https://avatars.githubusercontent.com/u/514294?v=4)](https://github.com/hissy "hissy (40 commits)")[![biplobice](https://avatars.githubusercontent.com/u/2462951?v=4)](https://github.com/biplobice "biplobice (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/concrete5cojp-concrete5-debugbar/health.svg)

```
[![Health](https://phpackages.com/badges/concrete5cojp-concrete5-debugbar/health.svg)](https://phpackages.com/packages/concrete5cojp-concrete5-debugbar)
```

###  Alternatives

[getgrav/grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS

15.4k84.1k1](/packages/getgrav-grav)[snowair/phalcon-debugbar

Integrates PHP Debug Bar with Phalcon.

160123.3k1](/packages/snowair-phalcon-debugbar)[php-middleware/php-debug-bar

PHP Debug Bar PSR-15 middleware with PSR-7

76433.5k2](/packages/php-middleware-php-debug-bar)[luthier/luthier

Improved routing, middleware support, authentication tools and more for CodeIgniter 3 framework

150108.8k](/packages/luthier-luthier)[roadiz/roadiz

Roadiz is a modern CMS based on a polymorphic content-schema system which can handle many types of services. It’s based on Symfony component and Doctrine ORM for maximum performances and security.

3769.3k6](/packages/roadiz-roadiz)[snapshotpl/zf-snap-php-debug-bar

PHP Debug Bar module for Zend Framework 2

3026.1k](/packages/snapshotpl-zf-snap-php-debug-bar)

PHPackages © 2026

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