{"id":20785623,"url":"https://github.com/ppito/laminas-whoops","last_synced_at":"2025-05-05T15:04:26.835Z","repository":{"id":49488903,"uuid":"233912672","full_name":"Ppito/laminas-whoops","owner":"Ppito","description":"Laminas-Whoops, integrated whoops in Laminas","archived":false,"fork":false,"pushed_at":"2025-03-21T08:03:48.000Z","size":28,"stargazers_count":3,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T14:09:41.839Z","etag":null,"topics":["laminas","laminas-whoops","php","twig-support","whoops","zend-framework","zf3","zf3-whoops"],"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/Ppito.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-14T18:53:43.000Z","updated_at":"2025-03-21T07:54:09.000Z","dependencies_parsed_at":"2022-09-11T08:20:25.315Z","dependency_job_id":null,"html_url":"https://github.com/Ppito/laminas-whoops","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ppito%2Flaminas-whoops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ppito%2Flaminas-whoops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ppito%2Flaminas-whoops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ppito%2Flaminas-whoops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ppito","download_url":"https://codeload.github.com/Ppito/laminas-whoops/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252522143,"owners_count":21761684,"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":["laminas","laminas-whoops","php","twig-support","whoops","zend-framework","zf3","zf3-whoops"],"created_at":"2024-11-17T14:46:38.753Z","updated_at":"2025-05-05T15:04:26.791Z","avatar_url":"https://github.com/Ppito.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laminas-Whoops, integrated [whoops](https://github.com/filp/whoops) in Laminas\n\n-----\n\n![Whoops!](http://i.imgur.com/0VQpe96.png)\n\n**whoops** is an error handler base/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# Table of Contents\n\n* [Module installation](#module-installation)\n* [Features](#features)\n  * [Render View Manager - Twig Support](#render-view-manager---twig-support)\n  * [Module Visibility Manager](#module-visibility-manager)\n* [License](#license)\n\n\n\n# Module installation\n  1. `cd my/project/directory`\n  2. create a `composer.json` file with following contents:\n\n     ```json\n     {\n         \"require-dev\": {\n             \"ppito/laminas-whoops\": \"^2.0\"\n         }\n     }\n     ```\n  3. install composer via `curl -s http://getcomposer.org/installer | php` (on windows, download\n     http://getcomposer.org/installer and execute it with PHP)\n  4. run `php composer.phar install`\n  5. open `my/project/directory/configs/modules.config.php` and add the following key :\n\n     ```php\n     'WhoopsErrorHandler', // must be added as the first module\n     ```\n  6. optional : copy `config/module.config.php` in `my/project/directory/config/autoload/laminas-whoops.local.php`\n  7. optional : edit `my/project/directory/config/autoload/laminas-whoops.local.php`\n\n# Features\n\n### Render View Manager - Twig Support \n\nBy default this module use the simple php render, but you can now specify your favorite render.\n\n##### Usage :\n`Twig render` has been supported, you just need to change the `template_render` configuration:\n```php\n'template_render' =\u003e 'laminas_whoops/twig_error',\n```\n\n### Module Visibility Manager \n\nIt is now possible to manage the module loading by implement your own rules.\nFor example, the module can be loaded only for the admin users or only for dev\u0026preprod environments.\n\n##### Usage :\n* Create your own class by implement the interface [VisibilityServiceInterface](src/Service/VisibilityServiceInterface.php) (or the abstract [VisibilityServiceAbstract](src/Service/VisibilityServiceAbstract.php))\n    * @see example [VisibilityService.visibility-example.php](src/Service/VisibilityService.visibility-example.php).\n* Change the `visibility_service_name` configuration to specify the name of your class. \n    * @see example [module.config.visibility-example.php](config/module.config.visibility-example.php).\n    ```php\n    'visibility_service_name' =\u003e Application\\Service\\VisibilityService::class,\n    ```\n\n### Ignored Exceptions\n\nBy default, this module will route all exceptions to Whoops; however, you can create a list of\nexception classes that will be ignored by Whoops.\n\n##### Usage:\nSet the `ignored_exceptions` configuration to an array of class names:\n```php\n'ignored_exceptions' =\u003e [My\\Exception::class, My\\OtherException::class]\n```\n\n\n# License\n\n**ppito/laminas-whoops** is licensed under the MIT License - See the [LICENSE](LICENSE.md) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppito%2Flaminas-whoops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppito%2Flaminas-whoops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppito%2Flaminas-whoops/lists"}