{"id":15277457,"url":"https://github.com/nfaiz/ci4-debug-toolbar","last_synced_at":"2025-04-12T15:10:23.753Z","repository":{"id":48356673,"uuid":"382799347","full_name":"nfaiz/ci4-debug-toolbar","owner":"nfaiz","description":"SQL Syntax Highlighter for CodeIgniter 4 Database Debug Toolbar.","archived":false,"fork":false,"pushed_at":"2021-07-30T08:56:13.000Z","size":130,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T09:44:45.513Z","etag":null,"topics":["codeigniter","debugging","php","sql","toolbar"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nfaiz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-04T08:18:06.000Z","updated_at":"2023-12-21T10:39:55.000Z","dependencies_parsed_at":"2022-09-17T16:51:56.336Z","dependency_job_id":null,"html_url":"https://github.com/nfaiz/ci4-debug-toolbar","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfaiz%2Fci4-debug-toolbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfaiz%2Fci4-debug-toolbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfaiz%2Fci4-debug-toolbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfaiz%2Fci4-debug-toolbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfaiz","download_url":"https://codeload.github.com/nfaiz/ci4-debug-toolbar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586233,"owners_count":21128997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeigniter","debugging","php","sql","toolbar"],"created_at":"2024-09-30T11:06:35.407Z","updated_at":"2025-04-12T15:10:23.733Z","avatar_url":"https://github.com/nfaiz.png","language":"PHP","readme":"![GitHub](https://img.shields.io/github/license/nfaiz/ci4-debug-toolbar)\n![GitHub repo size](https://img.shields.io/github/repo-size/nfaiz/ci4-debug-toolbar?label=size)\n![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=nfaiz/ci4-debug-toolbar)\n\n\n# Moved to [here](https://github.com/nfaiz/dbtoolbar)\n\n\u003cdel\u003e\n# ci4-debug-toolbar\nSQL Syntax Highlighter for CodeIgniter 4 Database Debug Toolbar.\n\n## Description\nMake CodeIgniter 4 Database Debug Toolbar SQL Syntax to be **more readable and themeable**.\u003cbr /\u003e\n\n## Table of contents\n  * [Requirement](Requirement)\n  * [Installation](#installation)\n  * [Setup](#setup)\n  * [Usage](#usage)\n    * [Change stylesheet](#change-stylesheet)\n    * [Utilities](#utilities)\n  * [Screenshot](#screenshots)\n    * [Default database toolbar](#default-database-toolbar)\n    * [After Using Highlighter](#after-using-highlighter)\n    * [Another Example](#another-example)\n  * [Credit](#credit)\n\n\n## Requirement\n* [Codeigniter 4](https://github.com/codeigniter4/CodeIgniter4)\n* [Highlight.php](https://github.com/scrivo/highlight.php)\n\n\n## Installation\nInstall library via composer:\n\n    composer require nfaiz/ci4-debug-toolbar\n\nOr refer [here](docs/MANUAL.md#installation) for manual installation.\n\n\n## Setup\nLibrary setup can be done via spark:\n\n    php spark debugtoolbar:database\n\nThis command will try to overwrite some content in **app/Config/Events.php** and **app/Config/Toolbar.php**.\u003cbr /\u003e \nChoose overwrite [`y`] when prompted.\n\nOr refer [here](docs/MANUAL.md#setup) for manual setup.\u003cbr /\u003e\n\n\nAfter library installation and setup are completed, refresh page to see result.\u003cbr /\u003e\nSee [usage](#usage) to configure with other pre-installed stylesheet themes.\n\n\n## Usage\n\n### Change StyleSheet\nOpen **app/Config/Toolbar.php**.\n\nFind `$sqlCssTheme` property.\n\n```php\n    public $sqlCssTheme = [\n        'light' =\u003e 'github',\n        'dark'  =\u003e 'dracula'\n    ];\n```\n* `light` and `dark` are mode options for CodeIghniter 4 debug toolbar.\n* Assign stylesheet name without `.css` extension. E.g `'github'`\n* Available stylesheets can be found using [utilities](#utilities) \n\n### Utilities\nUse HighlightUtilities function from Highlight.php. \u003cbr /\u003e\nPlease see [highlighter-utilities](https://github.com/scrivo/highlight.php#highlighter-utilities) for more information.\n\nE.g In **Controller**\n\n```php\n    // Get available stylesheets.\n    $list = \\HighlightUtilities\\getAvailableStyleSheets();\n    d($list);\n\n    // Set true to get available stylesheets with absolute path.\n    $listPath = \\HighlightUtilities\\getAvailableStyleSheets(true);\n    d($listPath);\n\n    // Get specific stylesheet path.\n    $path = \\HighlightUtilities\\getStyleSheetPath('github');\n    d($path);\n```\n\n## Screenshot\n\n### Default Database Toolbar\n\n* Light\u003cbr /\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/1330109/125154813-894c0b80-e18e-11eb-8bf3-4e6834437ad9.png\" alt=\"Light mode\"\u003e\n\n* Dark\u003cbr /\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/1330109/125154888-ef389300-e18e-11eb-88f6-7f066ec09775.png\" alt=\"Dark mode\"\u003e\n\n### After using highlighter\n\n* Light (using default.css)\u003cbr /\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/1330109/125154946-450d3b00-e18f-11eb-982f-93fcc3d09e06.png\" alt=\"Light mode\"\u003e\n\n* Dark (using dark.css)\u003cbr /\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/1330109/125155349-bf3ebf00-e191-11eb-922f-8b9bd9f12df8.png\" alt=\"Dark mode\"\u003e\n\n### Another example\n\n* Light (using atom-one-light.css)\n\u003cimg src=\"https://user-images.githubusercontent.com/1330109/125155187-bb5e6d00-e190-11eb-91a5-b4c2f7da46e4.png\" alt=\"Light mode\"\u003e\n\n* Dark (using atom-one-dark.css)\n\u003cimg src=\"https://user-images.githubusercontent.com/1330109/125155379-fca34c80-e191-11eb-981f-8fb6e8df9794.png\" alt=\"Dark mode\"\u003e\n\n## Credit\n- [Highlight.php](https://github.com/scrivo/highlight.php)\n- Inspired by this [pull request](https://github.com/codeigniter4/CodeIgniter4/pull/3515)\n\u003c/del\u003e","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfaiz%2Fci4-debug-toolbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfaiz%2Fci4-debug-toolbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfaiz%2Fci4-debug-toolbar/lists"}