{"id":25492520,"url":"https://github.com/slavcodev/middleware-whoops","last_synced_at":"2026-01-11T16:41:41.407Z","repository":{"id":57040900,"uuid":"79264532","full_name":"slavcodev/middleware-whoops","owner":"slavcodev","description":"This package contains a middleware that catches all exceptions and redirects those to the Whoops error handling library.","archived":false,"fork":false,"pushed_at":"2017-01-17T20:04:38.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T08:49:59.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slavcodev.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}},"created_at":"2017-01-17T19:40:21.000Z","updated_at":"2023-09-13T09:38:40.000Z","dependencies_parsed_at":"2022-08-23T23:30:49.467Z","dependency_job_id":null,"html_url":"https://github.com/slavcodev/middleware-whoops","commit_stats":null,"previous_names":["slavcodev/middleware-whoops"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavcodev%2Fmiddleware-whoops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavcodev%2Fmiddleware-whoops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavcodev%2Fmiddleware-whoops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavcodev%2Fmiddleware-whoops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slavcodev","download_url":"https://codeload.github.com/slavcodev/middleware-whoops/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239561922,"owners_count":19659553,"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":[],"created_at":"2025-02-18T22:30:42.247Z","updated_at":"2025-11-08T21:30:29.158Z","avatar_url":"https://github.com/slavcodev.png","language":"PHP","readme":"# Whoops middleware\n  \nThis package contains a middleware that catches all exceptions\nand redirects those to the [Whoops error handling library](http://filp.github.io/whoops/).\n\n\n## Install\n\nVia [Composer](https://getcomposer.org)\n\n```bash\ncomposer require phpsdk/middleware-whoops\n```\n\n## Usage\n\nJust use the `ClientMiddleware` or `ServerMiddleware` class in your middleware stack:\n\n~~~php\nuse PhpSDK\\Http\\Middleware\\Whoops\\ServerMiddleWare as WhoopsServerMiddleWare;\nuse Whoops;\n\n$whoops = new Whoops\\Run();\n$whoops-\u003epushHandler(new PrettyPageHandler());\n\n$middleware = new WhoopsServerMiddleWare($whoops, new Response('Default error', 500));\n\n$stack = $stack-\u003ewithMiddleware($middleware);\n~~~\n\nIf an exception is thrown, or an error is raised, Whoops will display a nice error message:\n\n![Whoops!](http://i.imgur.com/0VQpe96.png)\n\n## Testing\n\n```bash\n# install required files\ncomposer self-update\ncomposer install\n\n# run the test (from project root)\nphpunit\n```\n\n## Credits\n\n- [Veaceslav Medvedev](https://github.com/slavcodev)\n- [All Contributors](../../contributors)\n\n## License\n\nThe BSD 2-Clause License. Please see [LICENSE][link-license] for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavcodev%2Fmiddleware-whoops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslavcodev%2Fmiddleware-whoops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavcodev%2Fmiddleware-whoops/lists"}