{"id":148,"date":"2018-07-09T14:18:02","date_gmt":"2018-07-09T11:18:02","guid":{"rendered":"http:\/\/antyat.ru\/?p=148"},"modified":"2018-07-09T14:18:02","modified_gmt":"2018-07-09T11:18:02","slug":"php-debugbar-integration-for-laravel","status":"publish","type":"post","link":"http:\/\/antyat.ru\/?p=148","title":{"rendered":"PHP Debugbar integration for Laravel"},"content":{"rendered":"<p>https:\/\/packagist.org\/packages\/barryvdh\/laravel-debugbar<\/p>\n<h1>README<\/h1>\n<p><a href=\"http:\/\/choosealicense.com\/licenses\/mit\/\" rel=\"nofollow noindex noopener external\"><img decoding=\"async\" src=\"https:\/\/camo.githubusercontent.com\/a4f85d138421a697974686d96d613194c776fa1c\/68747470733a2f2f706f7365722e707567782e6f72672f62617272797664682f6c61726176656c2d64656275676261722f6c6963656e73652e706e67\" alt=\"Packagist License\" \/><\/a>\u00a0<a href=\"https:\/\/packagist.org\/packages\/barryvdh\/laravel-debugbar\" rel=\"nofollow noindex noopener external\"><img decoding=\"async\" src=\"https:\/\/camo.githubusercontent.com\/b425248c4010dfe1cf068f1c31f4f2a9078e04c8\/68747470733a2f2f706f7365722e707567782e6f72672f62617272797664682f6c61726176656c2d64656275676261722f76657273696f6e2e706e67\" alt=\"Latest Stable Version\" \/><\/a>\u00a0<a href=\"https:\/\/packagist.org\/packages\/barryvdh\/laravel-debugbar\" rel=\"nofollow noindex noopener external\"><img decoding=\"async\" src=\"https:\/\/camo.githubusercontent.com\/dfe2405b9e15da98587e39f4e8053ea5516b3d85\/68747470733a2f2f706f7365722e707567782e6f72672f62617272797664682f6c61726176656c2d64656275676261722f642f746f74616c2e706e67\" alt=\"Total Downloads\" \/><\/a><\/p>\n<h3><a id=\"user-content-note-for-v3-debugbar-is-now-enabled-by-requiring-the-package-but-still-needs-app_debugtrue-by-default\" class=\"anchor\" href=\"https:\/\/packagist.org\/packages\/barryvdh\/laravel-debugbar#user-content-note-for-v3-debugbar-is-now-enabled-by-requiring-the-package-but-still-needs-app_debugtrue-by-default\" rel=\"nofollow noindex noopener external\"><\/a>Note for v3: Debugbar is now enabled by requiring the package, but still needs APP_DEBUG=true by default!<\/h3>\n<h3><a id=\"user-content-for-laravel--55-please-use-the-24-branch\" class=\"anchor\" href=\"https:\/\/packagist.org\/packages\/barryvdh\/laravel-debugbar#user-content-for-laravel--55-please-use-the-24-branch\" rel=\"nofollow noindex noopener external\"><\/a>For Laravel &lt; 5.5, please use the\u00a0<a href=\"https:\/\/github.com\/barryvdh\/laravel-debugbar\/tree\/2.4\" rel=\"nofollow noindex noopener external\">2.4 branch<\/a>!<\/h3>\n<p>This is a package to integrate\u00a0<a href=\"http:\/\/phpdebugbar.com\/\" rel=\"nofollow noindex noopener external\">PHP Debug Bar<\/a>\u00a0with Laravel 5. It includes a ServiceProvider to register the debugbar and attach it to the output. You can publish assets and configure it through Laravel. It bootstraps some Collectors to work with Laravel and implements a couple custom DataCollectors, specific for Laravel. It is configured to display Redirects and (jQuery) Ajax Requests. (Shown in a dropdown) Read\u00a0<a href=\"http:\/\/phpdebugbar.com\/docs\/\" rel=\"nofollow noindex noopener external\">the documentation<\/a>\u00a0for more configuration options.<\/p>\n<p><a href=\"https:\/\/cloud.githubusercontent.com\/assets\/973269\/4270452\/740c8c8c-3ccb-11e4-8d9a-5a9e64f19351.png\" target=\"_blank\" rel=\"nofollow noindex noopener external\"><img decoding=\"async\" src=\"https:\/\/cloud.githubusercontent.com\/assets\/973269\/4270452\/740c8c8c-3ccb-11e4-8d9a-5a9e64f19351.png\" alt=\"Screenshot\" \/><\/a><\/p>\n<p>Note: Use the DebugBar only in development. It can slow the application down (because it has to gather data). So when experiencing slowness, try disabling some of the collectors.<\/p>\n<p>This package includes some custom collectors:<\/p>\n<ul>\n<li>QueryCollector: Show all queries, including binding + timing<\/li>\n<li>RouteCollector: Show information about the current Route.<\/li>\n<li>ViewCollector: Show the currently loaded views. (Optionally: display the shared data)<\/li>\n<li>EventsCollector: Show all events<\/li>\n<li>LaravelCollector: Show the Laravel version and Environment. (disabled by default)<\/li>\n<li>SymfonyRequestCollector: replaces the RequestCollector with more information about the request\/response<\/li>\n<li>LogsCollector: Show the latest log entries from the storage logs. (disabled by default)<\/li>\n<li>FilesCollector: Show the files that are included\/required by PHP. (disabled by default)<\/li>\n<li>ConfigCollector: Display the values from the config files. (disabled by default)<\/li>\n<li>CacheCollector: Display all cache events. (disabled by default)<\/li>\n<\/ul>\n<p>Bootstraps the following collectors for Laravel:<\/p>\n<ul>\n<li>LogCollector: Show all Log messages<\/li>\n<li>SwiftMailCollector and SwiftLogCollector for Mail<\/li>\n<\/ul>\n<p>And the default collectors:<\/p>\n<ul>\n<li>PhpInfoCollector<\/li>\n<li>MessagesCollector<\/li>\n<li>TimeDataCollector (With Booting and Application timing)<\/li>\n<li>MemoryCollector<\/li>\n<li>ExceptionsCollector<\/li>\n<\/ul>\n<p>It also provides a Facade interface for easy logging Messages, Exceptions and Time<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/packagist.org\/packages\/barryvdh\/laravel-debugbar README \u00a0\u00a0 Note for v3: Debugbar is now enabled by requiring the package, but still needs APP_DEBUG=true by default! For Laravel &lt; 5.5, please use the\u00a02.4 branch! This is a package to integrate\u00a0PHP Debug Bar\u00a0with Laravel 5. It includes a ServiceProvider to register the debugbar and attach it to the output. You can publish [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/antyat.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":1,"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":149,"href":"http:\/\/antyat.ru\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions\/149"}],"wp:attachment":[{"href":"http:\/\/antyat.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/antyat.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/antyat.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}