{"id":18929497,"url":"https://github.com/thecodingmachine/whoops-middleware-universal-module","last_synced_at":"2025-07-05T04:34:27.990Z","repository":{"id":57067881,"uuid":"52963600","full_name":"thecodingmachine/whoops-middleware-universal-module","owner":"thecodingmachine","description":"Cross-framework module for franzliedke/whoops-middleware","archived":false,"fork":false,"pushed_at":"2023-02-08T15:04:50.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"next-funky","last_synced_at":"2025-04-11T18:59:52.962Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-02T13:10:39.000Z","updated_at":"2023-02-08T15:04:55.000Z","dependencies_parsed_at":"2024-11-08T11:36:24.669Z","dependency_job_id":"14c29563-73b5-43e1-9758-86854fe41696","html_url":"https://github.com/thecodingmachine/whoops-middleware-universal-module","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.1875,"last_synced_commit":"bfa71f70fd3664cff82a743afe8bf56afd43f119"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fwhoops-middleware-universal-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fwhoops-middleware-universal-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fwhoops-middleware-universal-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fwhoops-middleware-universal-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/whoops-middleware-universal-module/tar.gz/refs/heads/next-funky","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249097858,"owners_count":21212362,"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":"2024-11-08T11:33:00.852Z","updated_at":"2025-04-15T15:31:03.359Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/thecodingmachine/whoops-middleware-universal-module/v/stable)](https://packagist.org/packages/thecodingmachine/whoops-middleware-universal-module)\n[![Latest Unstable Version](https://poser.pugx.org/thecodingmachine/whoops-middleware-universal-module/v/unstable)](https://packagist.org/packages/thecodingmachine/whoops-middleware-universal-module)\n[![License](https://poser.pugx.org/thecodingmachine/whoops-middleware-universal-module/license)](https://packagist.org/packages/thecodingmachine/whoops-middleware-universal-module)\n[![Build Status](https://travis-ci.org/thecodingmachine/whoops-middleware-universal-module.svg?branch=1.1)](https://travis-ci.org/thecodingmachine/whoops-middleware-universal-module)\n[![Coverage Status](https://coveralls.io/repos/thecodingmachine/whoops-middleware-universal-module/badge.svg?branch=1.1\u0026service=github)](https://coveralls.io/github/thecodingmachine/whoops-middleware-universal-module?branch=1.1)\n\n# Whoops middleware universal module\n\nThis package integrates the `middlewares/whoops` library in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.\n\n## Installation\n\n```\ncomposer require thecodingmachine/whoops-middleware-universal-module\n```\n\nIf your container supports autodiscovery by Discovery, there is nothing more to do.\nOtherwise, you need to register the [`TheCodingMachine\\WhoopsMiddlewareServiceProvider`](src/WhoopsMiddlewareServiceProvider.php) into your container.\n\nRefer to your framework or container's documentation to learn how to register *service providers*.\n\n## Usage\n\nThis module registers one service in your container:\n\n- A PSR-15 Middleware under the `Middlewares\\Whoops` key.\n\nMoreover, this module registers both keys in the routers list. If you use a compatible service provider (like [stratigility-harmony](https://github.com/thecodingmachine/stratigility-harmony)), the Whoops Middleware handler will be added automatically.\n\n## Expected values / services\n\nThis *service provider* expects the following configuration / services to be available:\n\n| Name            | Compulsory | Description                            |\n|-----------------|------------|----------------------------------------|\n| `Whoops\\Run`    | *no*       | An instance of the Whoops Run class. A default one will be provided if the service is not available in the container.  |\n| `Whoops\\Util\\SystemFacade`   | *no*       | A Whoops SystemFacade used to build the Whoops `Run` instance. This is only used if no `Whoops\\Run` instance is available in the container.  |\n| `whoops.catchErrors`       | *no*       | (bool), defaults to true. Whether Whoops should turn errors into exceptions.  |\n| `whoopsHandlerContainer`   | *no*       | A PSR-11 container that contains the mime type as key and the Whoops error handler as value. Useful to use a special default handler for a given mime type.  |\n\n\n## Provided services\n\nThis *service provider* provides the following services:\n\n| Service name                | Description                          |\n|-----------------------------|--------------------------------------|\n| `Middlewares\\Whoops`        | The PSR-15 Whoops middleware |\n\n## Extended services\n\nThis *service provider* extends those services:\n\n| Name                        | Compulsory | Description                            |\n|-----------------------------|------------|----------------------------------------|\n| `MiddlewareListServiceProvider::MIDDLEWARES_QUEUE`              | *no*      | This service providers inserts the CSRF middleware in the middleware queue.                             |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fwhoops-middleware-universal-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fwhoops-middleware-universal-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fwhoops-middleware-universal-module/lists"}