{"id":13660336,"url":"https://github.com/JosephLenton/PHP-Error","last_synced_at":"2025-04-24T19:30:49.892Z","repository":{"id":3551460,"uuid":"4612164","full_name":"JosephLenton/PHP-Error","owner":"JosephLenton","description":"Better error reporting for PHP, and prettier too!","archived":false,"fork":false,"pushed_at":"2021-10-16T05:10:36.000Z","size":550,"stargazers_count":1347,"open_issues_count":41,"forks_count":150,"subscribers_count":85,"default_branch":"master","last_synced_at":"2025-04-09T11:49:50.909Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JosephLenton.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-10T02:24:30.000Z","updated_at":"2025-03-23T07:25:38.000Z","dependencies_parsed_at":"2022-08-26T18:51:03.904Z","dependency_job_id":null,"html_url":"https://github.com/JosephLenton/PHP-Error","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephLenton%2FPHP-Error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephLenton%2FPHP-Error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephLenton%2FPHP-Error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephLenton%2FPHP-Error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JosephLenton","download_url":"https://codeload.github.com/JosephLenton/PHP-Error/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250693478,"owners_count":21472268,"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-08-02T05:01:20.266Z","updated_at":"2025-04-24T19:30:49.468Z","avatar_url":"https://github.com/JosephLenton.png","language":"PHP","funding_links":[],"categories":["PHP","目录","代码分析( Code Analysis )","类库"],"sub_categories":["调试和性能分析 Debugging and Profiling","错误/异常"],"readme":"PHP Error | Improve Error Reporting for PHP\n===========================================\n\n**THIS IS NO LOBGER MAINTAINED, Please leave me alone.**\n\nPHP errors are not good enough for development, it's as simple as that. This aims to solve this.\n\n![Better Error Message](http://i.imgur.com/1G77I.png)\n\nWhen an error strikes, the page is replaced with a full stack trace, syntax highlighting, and all displayed to be readable.\n\n### Works with Ajax too!\n\nIf the server errors during an ajax request, then the request is paused, and the error is displayed in the browser. You can then click to automatically retry the last request.\n\n![ajax server stack trace](http://i.imgur.com/WRgug.png)\n\nThis requires no changes to your JavaScript, and works with existing JS libraries such as jQuery.\n\nDo not use on a live site!\n--------------------------\n\nTo help make development easier, this __deliberately__ makes your code unsafe.\nExternal requests are allowed to change your code, it shows more about your site,\ngives you more info, and makes trivial errors fatal.\nAll of that is awesome if you want to fix bugs in less time,\nbut in production, it is totally unsafe.\n\n**seriously, only use this for development!**\n\nIn case you forget,\nyou can disable this in production using the 'php_error.force_disabled' php.ini option (see below).\n\nFeatures\n--------\n * trivial to use, it's just one file\n * errors displayed in the browser for normal and ajaxy requests\n * ajax requests are paused, allowing you to automatically re-run them\n * makes errors as strict as possible (encourages code quality, and tends to improve performance)\n * code snippets across the whole stack trace\n * provides more information (such as full function signatures)\n * fixes some error messages which are just plain wrong\n * syntax highlighting\n * looks pretty!\n\nGetting Started\n---------------\n\n * Download, it's just one file.\n * Place it in your project.\n * import php_error.php\n * call \\php_error\\reportErrors()\n\n```php\n    \u003c?php\n        require( 'php_error.php' );\n        \\php_error\\reportErrors();\n    ?\u003e\n```\n\nDocumentation\n-------------\n\n### [Example Setup](https://github.com/JosephLenton/PHP-Error/wiki/Example-Setup)\n\n### [API](https://github.com/JosephLenton/PHP-Error/wiki/API)\n\n### [Options](https://github.com/JosephLenton/PHP-Error/wiki/Options)\n\n### [php.ini settings](https://github.com/JosephLenton/PHP-Error/wiki/php.ini)\n\nAdvanced Features\n-----------------\n\n * customization\n * manually turn it on and off\n * run specific sections without error reporting\n * ignore files allowing you to avoid highlighting code in your stack trace\n * application files; these are prioritized when an error strikes!\n \n![Application Aware Stack Trace](http://i.imgur.com/qdwnb.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJosephLenton%2FPHP-Error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJosephLenton%2FPHP-Error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJosephLenton%2FPHP-Error/lists"}