{"id":16173360,"url":"https://github.com/rarst/wps","last_synced_at":"2025-10-10T18:02:04.909Z","repository":{"id":21580176,"uuid":"24900124","full_name":"Rarst/wps","owner":"Rarst","description":"WordPress plugin for whoops error handler.","archived":false,"fork":false,"pushed_at":"2020-03-25T09:56:21.000Z","size":28,"stargazers_count":127,"open_issues_count":2,"forks_count":16,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-31T09:08:49.768Z","etag":null,"topics":["error-handler","whoops","wordpress-plugin"],"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/Rarst.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-10-07T16:37:17.000Z","updated_at":"2025-03-21T15:18:30.000Z","dependencies_parsed_at":"2022-07-22T13:02:19.529Z","dependency_job_id":null,"html_url":"https://github.com/Rarst/wps","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/Rarst%2Fwps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rarst%2Fwps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rarst%2Fwps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rarst%2Fwps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rarst","download_url":"https://codeload.github.com/Rarst/wps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247633223,"owners_count":20970289,"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":["error-handler","whoops","wordpress-plugin"],"created_at":"2024-10-10T04:08:30.793Z","updated_at":"2025-10-10T18:02:04.838Z","avatar_url":"https://github.com/Rarst.png","language":"PHP","readme":"# wps — WordPress plugin for whoops\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Rarst/wps/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Rarst/wps/?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/rarst/wps/v/stable)](https://packagist.org/packages/rarst/wps)\n[![Total Downloads](https://poser.pugx.org/rarst/wps/downloads)](https://packagist.org/packages/rarst/wps)\n[![PHP version](https://img.shields.io/packagist/php-v/rarst/wps.svg)](https://packagist.org/packages/rarst/wps)\n[![Download wps](https://img.shields.io/badge/download-wps.zip-blue)](https://github.com/Rarst/wps/releases/latest/download/wps.zip)\n\nwps adds [whoops](http://filp.github.io/whoops/) error handler to a WordPress installation. \n\nIt makes error messages from PHP, `admin-ajax.php`, and WP REST API a _great_ deal more clear and convenient to work with.\n\n## Installation\n\n| [Composer](https://getcomposer.org/) (recommended) | Release archive |  \n| -------------------------------------------------- | -------- |  \n| `composer require rarst/wps` | [![Download wps](https://img.shields.io/badge/download-wps.zip-blue?style=for-the-badge)](https://github.com/Rarst/wps/releases/latest/download/wps.zip) |\n\n## Usage\n\nThe plugin is meant strictly for development and will only work with `WP_DEBUG` and `WP_DEBUG_DISPLAY` configuration constants enabled.\n\n## Silence errors\n\nwhoops can definitely get noisy with a lot of low–grade errors.\n\nSilence errors for irrelevant locations to keep it practical and productive.\n\n### Silence for URL\n\nUse `?wps_disable` query argument in the URL to temporarily disable whoops. \n\n### Silence for path\n\nUse regular expressions to match source file paths and [error constants](https://www.php.net/manual/en/errorfunc.constants.php) to configure what should be silenced.\n\nThis can be called multiple times and/or array of paths can be provided.\n\nNote that the direction of slashes needs to match operating system or write your regexes to match either.\n\n```php\nglobal $wps;\n\n// Silence notices and warnings for any path. \n$wps['run']-\u003esilenceErrorsInPaths( '~.*~', E_NOTICE | E_WARNING );\n\n// Silence for specific directory.\n$wps['run']-\u003esilenceErrorsInPaths( '~/wp-admin/~', E_NOTICE | E_WARNING );\n\n// Silence _except_ specific directory.\n$wps['run']-\u003esilenceErrorsInPaths( '~^((?!/my-plugin/).)*$~', E_NOTICE | E_WARNING );\n\n// Silence for plugins _except_ specific plugin.\n$wps['run']-\u003esilenceErrorsInPaths( '~/wp-content/plugins/(?!my-plugin)~', E_NOTICE | E_WARNING );\n```\n\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frarst%2Fwps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frarst%2Fwps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frarst%2Fwps/lists"}