{"id":13535927,"url":"https://github.com/yiisoft/yii2-debug","last_synced_at":"2025-05-14T05:10:27.348Z","repository":{"id":11589379,"uuid":"14080033","full_name":"yiisoft/yii2-debug","owner":"yiisoft","description":"Debug Extension for Yii 2","archived":false,"fork":false,"pushed_at":"2025-02-19T14:40:37.000Z","size":11019,"stargazers_count":202,"open_issues_count":40,"forks_count":150,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-05-08T15:43:12.913Z","etag":null,"topics":["debugger","debugger-toolbar","hacktoberfest","logging","profiler","yii","yii2"],"latest_commit_sha":null,"homepage":"http://www.yiiframework.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yiisoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"yiisoft","github":["yiisoft"],"tidelift":"packagist/yiisoft/yii2-debug"}},"created_at":"2013-11-03T04:18:06.000Z","updated_at":"2025-04-01T06:30:39.000Z","dependencies_parsed_at":"2023-09-27T18:05:34.926Z","dependency_job_id":"85c948fe-e960-41c1-be01-8710d903ee96","html_url":"https://github.com/yiisoft/yii2-debug","commit_stats":{"total_commits":4343,"total_committers":215,"mean_commits":20.2,"dds":0.6516233018650702,"last_synced_commit":"c063a75c5ec76e4e726e0e6f38f1e7b9daabba6e"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiisoft","download_url":"https://codeload.github.com/yiisoft/yii2-debug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076849,"owners_count":22010611,"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":["debugger","debugger-toolbar","hacktoberfest","logging","profiler","yii","yii2"],"created_at":"2024-08-01T09:00:32.203Z","updated_at":"2025-05-14T05:10:27.299Z","avatar_url":"https://github.com/yiisoft.png","language":"PHP","funding_links":["https://opencollective.com/yiisoft","https://github.com/sponsors/yiisoft","https://tidelift.com/funding/github/packagist/yiisoft/yii2-debug"],"categories":["CSS"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://avatars0.githubusercontent.com/u/993323\" height=\"100px\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eDebug Extension for Yii 2\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\nThis extension provides a debugger for [Yii framework 2.0](https://www.yiiframework.com) applications. When this extension is used,\na debugger toolbar will appear at the bottom of every page. The extension also provides\na set of standalone pages to display more detailed debug information.\n\nFor license information check the [LICENSE](LICENSE.md)-file.\n\nDocumentation is at [docs/guide/README.md](docs/guide/README.md).\n\n[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-debug/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-debug)\n[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-debug/downloads.png)](https://packagist.org/packages/yiisoft/yii2-debug)\n[![Build Status](https://github.com/yiisoft/yii2-debug/workflows/build/badge.svg)](https://github.com/yiisoft/yii2-debug/actions)\n\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](https://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist yiisoft/yii2-debug\n```\n\nor add\n\n```\n\"yiisoft/yii2-debug\": \"~2.1.0\"\n```\n\nto the require section of your `composer.json` file.\n\n\nUsage\n-----\n\nOnce the extension is installed, simply modify your application configuration as follows:\n\n```php\nreturn [\n    'bootstrap' =\u003e ['debug'],\n    'modules' =\u003e [\n        'debug' =\u003e [\n            'class' =\u003e 'yii\\debug\\Module',\n            // uncomment and adjust the following to add your IP if you are not connecting from localhost.\n            //'allowedIPs' =\u003e ['127.0.0.1', '::1'],\n        ],\n        // ...\n    ],\n    ...\n];\n```\n\nYou will see a debugger toolbar showing at the bottom of every page of your application.\nYou can click on the toolbar to see more detailed debug information.\n\n\nOpen Files in IDE\n-----\n\nYou can create a link to open files in your favorite IDE with this configuration:\n\n```php\nreturn [\n    'bootstrap' =\u003e ['debug'],\n    'modules' =\u003e [\n        'debug' =\u003e [\n            'class' =\u003e 'yii\\debug\\Module',\n            'traceLine' =\u003e '\u003ca href=\"phpstorm://open?url={file}\u0026line={line}\"\u003e{file}:{line}\u003c/a\u003e',\n            // uncomment and adjust the following to add your IP if you are not connecting from localhost.\n            //'allowedIPs' =\u003e ['127.0.0.1', '::1'],\n        ],\n        // ...\n    ],\n    ...\n];\n```\n\nYou must make some changes to your OS. See these examples: \n - PHPStorm: https://github.com/aik099/PhpStormProtocol\n - Sublime Text 3 on Windows or Linux: https://packagecontrol.io/packages/subl%20protocol\n - Sublime Text 3 on Mac: https://github.com/inopinatus/sublime_url\n\n#### Virtualized or dockerized\n\nIf your application is run under a virtualized or dockerized environment, it is often the case that the application's \nbase path is different inside of the virtual machine or container than on your host machine. For the links work in those\n situations, you can configure `tracePathMappings` like this (change the path to your app):\n\n```php\n'tracePathMappings' =\u003e [\n    '/app' =\u003e '/path/to/your/app',\n],\n```\n\nOr you can create a callback for `traceLine` for even more control:\n\n```php\n'traceLine' =\u003e function($options, $panel) {\n    $filePath = $options['file'];\n    if (StringHelper::startsWith($filePath, Yii::$app-\u003ebasePath)) {\n        $filePath = '/path/to/your/app' . substr($filePath, strlen(Yii::$app-\u003ebasePath));\n    }\n    return strtr('\u003ca href=\"ide://open?url=file://{file}\u0026line={line}\"\u003e{text}\u003c/a\u003e', ['{file}' =\u003e $filePath]);\n},\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiisoft%2Fyii2-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2-debug/lists"}