{"id":21216897,"url":"https://github.com/lablnet/whoops","last_synced_at":"2025-07-10T11:33:03.734Z","repository":{"id":57010536,"uuid":"170127689","full_name":"lablnet/Whoops","owner":"lablnet","description":"[READ ONLY] Subtree split of the Zest Whoop component (see https://github.com/zestframework/Zest_Framework)","archived":false,"fork":false,"pushed_at":"2021-05-13T11:09:15.000Z","size":118,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-19T10:40:26.626Z","etag":null,"topics":["whoops"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"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/lablnet.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":"2019-02-11T12:48:38.000Z","updated_at":"2024-04-19T10:40:26.627Z","dependencies_parsed_at":"2022-08-20T16:00:57.827Z","dependency_job_id":null,"html_url":"https://github.com/lablnet/Whoops","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FWhoops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FWhoops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FWhoops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2FWhoops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lablnet","download_url":"https://codeload.github.com/lablnet/Whoops/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225637110,"owners_count":17500360,"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":["whoops"],"created_at":"2024-11-20T21:56:09.245Z","updated_at":"2024-11-20T21:56:09.719Z","avatar_url":"https://github.com/lablnet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Whoops\n[READ ONLY] Subtree split of the Zest Whoop component (see https://github.com/zestframework/Zest_Framework)\n\n\n## usage\nWhoops is a PHP library for handling exceptions and errors.\n\n## Requirement\n- PHP\n- Composer\n\n## Features\n- Flexible, stack-based error handling.\n- Stand-alone library with (currently) no required dependencies.\n- Highlight the error line with red color.\n- Show preview code in browser.\n- Clean, well-structured \u0026 tested code-base.\n-   Includes the ability to  [open referenced files directly in your editor and IDE](#open-files-in-an-editor)\n\n## Insallation\nInstalling this package is very simple, first ensure you have the right PHP version and composer installed then in your terminal/(command prompt) run: \n```composer require zest/whoops```\n\nRegister the handler in your code\n```php\n\u003c?php\n$whoops = new Whoops();\n```\n\n## usage\nExample:\n```php\n\u003c?php \nuse Zest\\Whoops;\nrequire '../vendor/autoload.php';\n$whoops = new Whoops();\n$a = 10;\necho \"The value of a is \".valueOfA();\n\n/*Rest of code*/\necho \"This is rest of code\";\n```\n\n## Output\n\n![image](https://raw.githubusercontent.com/zest-framework/Whoops/cca3c4277523797ad75ff6d9f053dc26290f6151/image/error.png)\n![image](https://raw.githubusercontent.com/zest-framework/Whoops/cca3c4277523797ad75ff6d9f053dc26290f6151/image/error1.png)\n\n## Open Files In An Editor\nWhoops comes with the ability to open referenced files directly in your IDE or editor. This feature only works in case your php-source files are locally accessible to the machine on which the editor is installed.\n```php\n\u003c?php\n$whoops = new Whoops();\n$whoops-\u003esetEditor('sublime');\n//Rest of code....\n```\nThe following editors are currently supported by default.\n\n- ``sublime`` Sublime editor \n\nAppend your own/custom editor\n```php\n\u003c?php\n$whoops = new Whoops();\n$whoops-\u003eappendEditor(\"myeditor\" , \"myeditor://open?url=file://::file\u0026line=::line\",)\n```\n## TODO\n\n- [x] Bootstrap 4 ready.\t \n- [x]   Includes the ability to  open referenced files directly in your editor and IDE]\n- [ ]  Should add more IDE\\Editor support.\n- [ ] Add new feature to show Enviroment details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flablnet%2Fwhoops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flablnet%2Fwhoops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flablnet%2Fwhoops/lists"}