{"id":15022592,"url":"https://github.com/jgauthi/component_debug","last_synced_at":"2026-03-16T21:05:31.654Z","repository":{"id":162073346,"uuid":"293766862","full_name":"jgauthi/component_debug","owner":"jgauthi","description":"Debug tools like: varExport* functions, timer, server dump, debug handler, SQL Beautifier, etc.","archived":false,"fork":false,"pushed_at":"2023-08-15T14:34:58.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T17:55:53.401Z","etag":null,"topics":["debugging","php4","php54","php56","php74","php82","server-dump","sql-beautifier","timer"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgauthi.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-08T09:43:20.000Z","updated_at":"2023-08-15T14:20:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ac3dd5e-b8ea-42d2-8594-7fb79473eb55","html_url":"https://github.com/jgauthi/component_debug","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgauthi%2Fcomponent_debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgauthi%2Fcomponent_debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgauthi%2Fcomponent_debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgauthi%2Fcomponent_debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgauthi","download_url":"https://codeload.github.com/jgauthi/component_debug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243318758,"owners_count":20272144,"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":["debugging","php4","php54","php56","php74","php82","server-dump","sql-beautifier","timer"],"created_at":"2024-09-24T19:58:09.353Z","updated_at":"2025-12-28T01:15:33.113Z","avatar_url":"https://github.com/jgauthi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Component Debug\nDebug tools like: varExport* functions, timer, server dump, debug handler, SQL Beautifier, etc.\n\n* [VarExport*](src/VarExport.php) functions is a `var_export()` extended, with `\u003cpre\u003e\u003c/pre\u003e` and multiples arguments $var exported. You can use several streams for output debug var (html comment, debug file, values returned).\n* [VarExport*_wp](src/VarExportWordpress.php) functions is a wordpress version of precedents functions. These debug functions is display on site or admin footer. \n* [Class Timer](src/Timer.php) to evaluate time script and specific portion code.\n* [Debug Handler](src/DebugHandler.php) is a script who display in the footer some debug information on the current page (dump values _GET, _POST..., files used, time script and memory, phpinfo, etc).\n\n\n## Prerequisite\n* PHP 8.2 (v2.1), old version: 7.4 (v2), 5.6 (v1.2+), 5.4+ (v1.1), 4 (v1.0)\n\n## Install\nEdit your [composer.json](https://getcomposer.org) (launch `composer update` after edit):\n```json\n{\n  \"repositories\": [\n    { \"type\": \"git\", \"url\": \"git@github.com:jgauthi/component_debug.git\" }\n  ],\n  \"require-dev\": {\n    \"jgauthi/component_debug\": \"2.*\"\n  }\n}\n```\n\nDefine the constant for dump exported variable on the folder (require write permissions):\n```php\ndefine('DEBUG_EXPORT_PATH', sys_get_temp_dir());\n\n// Or, set manually\ndefine('DEBUG_EXPORT_PATH', __DIR__.'/tmp');\n```\n\nFor use VarExport*_wp functions (wordpress), you can include the [VarExportWordpress.php](src/VarExportWordpress.php) file on `wp-config.php` or `theme init`:\n```php\nrequire_once __DIR__.'/vendor/autoload.php';\n\nif (defined('WP_DEBUG') \u0026\u0026 WP_DEBUG) {\n    include_once __DIR__.'/vendor/jgauthi/component_debug/src/VarExportWordpress.php';\n}\n```\n\nFor use the VarDumperServer (optional): `composer require --dev symfony/var-dumper`, and launch the command on your terminal: `./vendor/bin/var-dump-server`.\n\n## Documentation\nYou can look at [folder example](example).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgauthi%2Fcomponent_debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgauthi%2Fcomponent_debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgauthi%2Fcomponent_debug/lists"}