{"id":20959509,"url":"https://github.com/djlechuck/exceptionhandler","last_synced_at":"2026-04-22T12:05:42.601Z","repository":{"id":153988649,"uuid":"2492469","full_name":"DjLeChuck/ExceptionHandler","owner":"DjLeChuck","description":"ExceptionHandler is a standalone package to manage PHP exceptions.","archived":false,"fork":false,"pushed_at":"2011-10-03T21:01:07.000Z","size":240,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T00:25:15.183Z","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/DjLeChuck.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":"2011-09-30T22:15:40.000Z","updated_at":"2014-02-11T20:18:43.000Z","dependencies_parsed_at":"2023-04-22T17:43:53.394Z","dependency_job_id":null,"html_url":"https://github.com/DjLeChuck/ExceptionHandler","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/DjLeChuck%2FExceptionHandler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjLeChuck%2FExceptionHandler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjLeChuck%2FExceptionHandler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjLeChuck%2FExceptionHandler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DjLeChuck","download_url":"https://codeload.github.com/DjLeChuck/ExceptionHandler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243358212,"owners_count":20277989,"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-19T01:54:51.213Z","updated_at":"2025-12-26T12:42:15.001Z","avatar_url":"https://github.com/DjLeChuck.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ExceptionHandler\n================\n\nExceptionHandler is a standalone package to manage PHP exceptions.\n\n## Installation\n\nJust download and extract the package. Configures.\n\n## Configuration\n\nAll you have to do is to:\n\n1.    set the relative path of your library,\n2.    include the GeSHi's file (it lives in geshi's subdirectory),\n3.    instantiate GeSHi,\n4.    instantiate the handler with the relative path of the file and an instance of GeSHi.\n\nThen configure the PHP exception handler.\n\n```php\n\u003c?php\n\n// Load ExceptionHandler\n$libraryPath = 'path/to/ExceptionHandler/';\nrequire_once $libraryPath.'ExceptionHandler.php';\nrequire_once $libraryPath.'geshi/geshi.php';\n\n$geshi            = new GeSHi();\n$exceptionHandler = new ExceptionHandler($libraryPath, $geshi);\n\n```\n\nGeSHi is used to colorize the code. If you don't want to use it, configure like the following instructions:\n\n```php\n\u003c?php\n\n// Load ExceptionHandler\n$libraryPath = 'path/to/ExceptionHandler/';\nrequire_once $libraryPath.'ExceptionHandler.php';\n\n$exceptionHandler = new ExceptionHandler($libraryPath);\n\n```\n\nThere are two optional arguments: the number of lines to display and the use or not of javascript.\nThe first is set to 5 by default and the second as true.\n\nYou can change it if you want, for example, show 8 lines and do not use javascript:\n\n```php\n\u003c?php\n\n$exceptionHandler = new ExceptionHandler($libraryPath, $geshi, 8, false);\n\n```\n\n## Mechanism\n\nWhen an exception is caught, ExceptionHandler does his job and traces the exceptions' stack.\n\n\n## License\n\nExceptionHandler is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjlechuck%2Fexceptionhandler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjlechuck%2Fexceptionhandler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjlechuck%2Fexceptionhandler/lists"}