[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8140":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":18,"lastSyncTime":35,"discoverSource":36},8140,"whoops","filp\u002Fwhoops","filp","PHP errors for cool kids ","http:\u002F\u002Ffilp.github.io\u002Fwhoops\u002F",null,"PHP",13237,599,184,8,0,1,2,7,3,72.03,"MIT License",false,"master",true,[27,28,29,30,31,5],"error-handling","errors","php","php-errors","ui","2026-06-12 04:00:37","# whoops\nPHP errors for cool kids\n\n[![Total Downloads](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fdm\u002Ffilp\u002Fwhoops.svg)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Ffilp\u002Fwhoops)\n[![Latest Version](http:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fv\u002Ffilp\u002Fwhoops.svg)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Ffilp\u002Fwhoops)\n[![Build Status on newer versions](https:\u002F\u002Fgithub.com\u002Ffilp\u002Fwhoops\u002Fworkflows\u002FTests\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Ffilp\u002Fwhoops\u002Factions?query=workflow%3ATests)\n[![Scrutinizer Quality Score](https:\u002F\u002Fscrutinizer-ci.com\u002Fg\u002Ffilp\u002Fwhoops\u002Fbadges\u002Fquality-score.png?s=6225c36f2a2dd1fdca11ecc7b10b29105c8c62bd)](https:\u002F\u002Fscrutinizer-ci.com\u002Fg\u002Ffilp\u002Fwhoops)\n[![Code Coverage](https:\u002F\u002Fscrutinizer-ci.com\u002Fg\u002Ffilp\u002Fwhoops\u002Fbadges\u002Fcoverage.png?s=711feb2069144d252d111b211965ffb19a7d09a8)](https:\u002F\u002Fscrutinizer-ci.com\u002Fg\u002Ffilp\u002Fwhoops)\n\n-----\n\n![Whoops!](http:\u002F\u002Fi.imgur.com\u002F0VQpe96.png)\n\n**whoops** is an error handler framework for PHP. Out-of-the-box, it provides a pretty\nerror interface that helps you debug your web projects, but at heart it's a simple yet\npowerful stacked error handling system.\n\n## Features\n\n- Flexible, stack-based error handling\n- Stand-alone library with (currently) no required dependencies\n- Simple API for dealing with exceptions, trace frames & their data\n- Includes a pretty rad error page for your webapp projects\n- Includes the ability to [open referenced files directly in your editor and IDE](docs\u002FOpen%20Files%20In%20An%20Editor.md)\n- Includes handlers for different response formats (JSON, XML, SOAP)\n- Easy to extend and integrate with existing libraries\n- Clean, well-structured & tested code-base\n\n## Sponsors\n\n\u003Ca href=\"https:\u002F\u002Fblackfire.io\u002Fdocs\u002Fintroduction?utm_source=whoops&amp;utm_medium=github_readme&amp;utm_campaign=logo\">\u003Cimg src=\"https:\u002F\u002Fi.imgur.com\u002FzR8rsqk.png\" alt=\"Blackfire.io\" width=\"254\" height=\"64\">\u003C\u002Fa>\n\n## Installing\nIf you use Laravel 4, Laravel 5.5+, [Mezzio](https:\u002F\u002Fdocs.mezzio.dev\u002Fmezzio\u002F) or [ZubZet 1.2+](https:\u002F\u002Fzubzet.com\u002F), you already have Whoops. There are also community-provided instructions on how to integrate Whoops into\n[Silex 1](https:\u002F\u002Fgithub.com\u002Fwhoops-php\u002Fsilex-1),\n[Silex 2](https:\u002F\u002Fgithub.com\u002Ftexthtml\u002Fwhoops-silex),\n[Phalcon](https:\u002F\u002Fgithub.com\u002Fwhoops-php\u002Fphalcon),\n[Laravel 3](https:\u002F\u002Fgist.github.com\u002Fhugomrdias\u002F5169713#file-start-php),\n[Laravel 5](https:\u002F\u002Fgithub.com\u002FGrahamCampbell\u002FLaravel-Exceptions),\n[CakePHP 3](https:\u002F\u002Fgithub.com\u002Fdereuromark\u002Fcakephp-whoops\u002Ftree\u002Fcake3),\n[CakePHP 4](https:\u002F\u002Fgithub.com\u002Fdereuromark\u002Fcakephp-whoops),\n[Zend 2](https:\u002F\u002Fgithub.com\u002Fghislainf\u002Fzf2-whoops),\n[Zend 3](https:\u002F\u002Fgithub.com\u002FPpito\u002Fzf3-whoops),\n[Yii 1](https:\u002F\u002Fgithub.com\u002Figorsantos07\u002Fyii-whoops),\n[FuelPHP](https:\u002F\u002Fgithub.com\u002Findigophp\u002Ffuel-whoops),\n[Slim](https:\u002F\u002Fgithub.com\u002Fzeuxisoo\u002Fphp-slim-whoops\u002F),\n[Pimple](https:\u002F\u002Fgithub.com\u002Ftexthtml\u002Fwhoops-pimple),\n[Laminas](https:\u002F\u002Fgithub.com\u002FPpito\u002Flaminas-whoops),\nor any framework consuming [StackPHP middlewares](https:\u002F\u002Fgithub.com\u002Fthecodingmachine\u002Fwhoops-stackphp)\nor [PSR-7 middlewares](https:\u002F\u002Fgithub.com\u002Ffranzliedke\u002Fwhoops-middleware).\n\nIf you are not using any of these frameworks, here's a very simple way to install:\n\n1. Use [Composer](http:\u002F\u002Fgetcomposer.org) to install Whoops into your project:\n\n    ```bash\n    composer require filp\u002Fwhoops\n    ```\n\n1. Register the pretty handler in your code:\n\n    ```php\n    $whoops = new \\Whoops\\Run;\n    $whoops->pushHandler(new \\Whoops\\Handler\\PrettyPageHandler);\n    $whoops->register();\n    ```\n\nFor more options, have a look at the **example files** in [`examples\u002F`](.\u002Fexamples) to get a feel for how things work. Also take a look at the [API Documentation](docs\u002FAPI%20Documentation.md) and the list of available handlers below.\n\nYou may also want to override some system calls Whoops does. To do that, extend `Whoops\\Util\\SystemFacade`, override functions that you want and pass it as the argument to the `Run` constructor.\n\nYou may also collect the HTML generated to process it yourself:\n\n```php\n$whoops = new \\Whoops\\Run;\n$whoops->allowQuit(false);\n$whoops->writeToOutput(false);\n$whoops->pushHandler(new \\Whoops\\Handler\\PrettyPageHandler);\n$html = $whoops->handleException($e);\n```\n\n### Available Handlers\n\n**whoops** currently ships with the following built-in handlers, available in the `Whoops\\Handler` namespace:\n\n- [`PrettyPageHandler`](https:\u002F\u002Fgithub.com\u002Ffilp\u002Fwhoops\u002Fblob\u002Fmaster\u002Fsrc\u002FWhoops\u002FHandler\u002FPrettyPageHandler.php) - Shows a pretty error page when something goes pants-up\n- [`PlainTextHandler`](https:\u002F\u002Fgithub.com\u002Ffilp\u002Fwhoops\u002Fblob\u002Fmaster\u002Fsrc\u002FWhoops\u002FHandler\u002FPlainTextHandler.php) - Outputs plain text message for use in CLI applications\n- [`CallbackHandler`](https:\u002F\u002Fgithub.com\u002Ffilp\u002Fwhoops\u002Fblob\u002Fmaster\u002Fsrc\u002FWhoops\u002FHandler\u002FCallbackHandler.php) - Wraps a closure or other callable as a handler. You do not need to use this handler explicitly, **whoops** will automatically wrap any closure or callable you pass to `Whoops\\Run::pushHandler`\n- [`JsonResponseHandler`](https:\u002F\u002Fgithub.com\u002Ffilp\u002Fwhoops\u002Fblob\u002Fmaster\u002Fsrc\u002FWhoops\u002FHandler\u002FJsonResponseHandler.php) - Captures exceptions and returns information on them as a JSON string. Can be used to, for example, play nice with AJAX requests.\n- [`XmlResponseHandler`](https:\u002F\u002Fgithub.com\u002Ffilp\u002Fwhoops\u002Fblob\u002Fmaster\u002Fsrc\u002FWhoops\u002FHandler\u002FXmlResponseHandler.php) - Captures exceptions and returns information on them as a XML string. Can be used to, for example, play nice with AJAX requests.\n\nYou can also use pluggable handlers, such as [SOAP handler](https:\u002F\u002Fgithub.com\u002Fwhoops-php\u002Fsoap).\n\n## Authors\n\nThis library was primarily developed by [Filipe Dobreira](https:\u002F\u002Fgithub.com\u002Ffilp), and is currently maintained by [Denis Sokolov](https:\u002F\u002Fgithub.com\u002Fdenis-sokolov). A lot of awesome fixes and enhancements were also sent in by [various contributors](https:\u002F\u002Fgithub.com\u002Ffilp\u002Fwhoops\u002Fcontributors). Special thanks to [Graham Campbell](https:\u002F\u002Fgithub.com\u002FGrahamCampbell) and [Markus Staab](https:\u002F\u002Fgithub.com\u002Fstaabm) for continuous participation.\n","Whoops 是一个 PHP 错误处理框架，旨在为 Web 项目提供美观且实用的错误界面。其核心功能包括灵活的堆栈式错误处理机制、简洁的 API 用于处理异常和跟踪数据、以及支持多种响应格式（如 JSON、XML 和 SOAP）。此外，Whoops 还允许用户直接在编辑器或 IDE 中打开引用文件，方便调试。作为一个独立库，它没有外部依赖，并且易于扩展和与现有库集成。Whoops 适用于各种 PHP 项目，特别是需要增强错误处理体验的 Web 应用程序。","2026-06-11 03:16:22","top_language"]