{"id":16957712,"url":"https://github.com/franzliedke/whoops-middleware","last_synced_at":"2025-03-17T08:37:30.717Z","repository":{"id":33856326,"uuid":"37562120","full_name":"franzliedke/whoops-middleware","owner":"franzliedke","description":"PSR-15 compatible middleware for Whoops, the pretty error handler","archived":false,"fork":false,"pushed_at":"2022-02-08T21:02:01.000Z","size":34,"stargazers_count":28,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T21:38:23.925Z","etag":null,"topics":["middleware","php","psr-15","psr-7","whoops"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/franzliedke.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":"2015-06-16T23:51:05.000Z","updated_at":"2024-03-19T12:54:06.000Z","dependencies_parsed_at":"2022-08-07T23:16:48.836Z","dependency_job_id":null,"html_url":"https://github.com/franzliedke/whoops-middleware","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzliedke%2Fwhoops-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzliedke%2Fwhoops-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzliedke%2Fwhoops-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franzliedke%2Fwhoops-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/franzliedke","download_url":"https://codeload.github.com/franzliedke/whoops-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243852499,"owners_count":20358271,"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":["middleware","php","psr-15","psr-7","whoops"],"created_at":"2024-10-13T22:19:45.773Z","updated_at":"2025-03-17T08:37:30.264Z","avatar_url":"https://github.com/franzliedke.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSR-15 middleware for Whoops\n\nA PSR-15 compatible middleware for [Whoops](https://github.com/filp/whoops), the fantastic pretty error handler for PHP.\n\n## Installation\n\nYou can install the library using Composer:\n\n    composer require franzl/whoops-middleware\n\n## Usage\n\nAssuming you are using a PSR-15 compatible middleware dispatcher (such as [zend-stratigility](https://github.com/zendframework/zend-stratigility), [Relay](http://relayphp.com/2.x), or [broker](https://github.com/northwoods/broker)), all you need to do is add the middleware class to your pipeline / broker / dispatcher ...\n\nThis might look as follows:\n\n### Stratigility\n\n```php\n$pipe-\u003epipe(new \\Franzl\\Middleware\\Whoops\\WhoopsMiddleware)\n```\n\n### Relay\n\n```php\n$queue = [];\n// ...\n$queue[] = new \\Franzl\\Middleware\\Whoops\\WhoopsMiddleware;\n$relay = new Relay($queue);\n```\n\n### broker\n\n```php\n$broker-\u003ealways(\\Franzl\\Middleware\\Whoops\\WhoopsMiddleware::class)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranzliedke%2Fwhoops-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffranzliedke%2Fwhoops-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranzliedke%2Fwhoops-middleware/lists"}