Download the PHP package nfaiz/ci4-debug-toolbar without Composer
On this page you can find all versions of the php package nfaiz/ci4-debug-toolbar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nfaiz/ci4-debug-toolbar
More information about nfaiz/ci4-debug-toolbar
Files in nfaiz/ci4-debug-toolbar
Package ci4-debug-toolbar
Short Description SQL Syntax Highlighter for CodeIgniter 4 Database Debug Toolbar.
License MIT
Homepage https://github.com/nfaiz/ci4-debug-toolbar
Informations about the package ci4-debug-toolbar
Moved to here
ci4-debug-toolbar
SQL Syntax Highlighter for CodeIgniter 4 Database Debug Toolbar.
Description
Make CodeIgniter 4 Database Debug Toolbar SQL Syntax to be more readable and themeable.
Table of contents
- Requirement
- Installation
- Setup
- Usage
- Change stylesheet
- Utilities
- Screenshot
- Default database toolbar
- After Using Highlighter
- Another Example
- Credit
Requirement
Installation
Install library via composer:
composer require nfaiz/ci4-debug-toolbar
Or refer here for manual installation.
Setup
Library setup can be done via spark:
php spark debugtoolbar:database
This command will try to overwrite some content in app/Config/Events.php and app/Config/Toolbar.php.
Choose overwrite [y
] when prompted.
Or refer here for manual setup.
After library installation and setup are completed, refresh page to see result.
See usage to configure with other pre-installed stylesheet themes.
Usage
Change StyleSheet
Open app/Config/Toolbar.php.
Find $sqlCssTheme
property.
light
anddark
are mode options for CodeIghniter 4 debug toolbar.- Assign stylesheet name without
.css
extension. E.g'github'
- Available stylesheets can be found using utilities
Utilities
Use HighlightUtilities function from Highlight.php.
Please see highlighter-utilities for more information.
E.g In Controller
Screenshot
Default Database Toolbar
-
Light
- Dark
After using highlighter
-
Light (using default.css)
- Dark (using dark.css)
Another example
-
Light (using atom-one-light.css)
- Dark (using atom-one-dark.css)
Credit
- Highlight.php
- Inspired by this pull request