{"id":21965510,"url":"https://github.com/softius/exceptionist","last_synced_at":"2025-04-24T03:41:53.522Z","repository":{"id":6475953,"uuid":"7716022","full_name":"softius/exceptionist","owner":"softius","description":"Exception Handler for PHP 5.3","archived":false,"fork":false,"pushed_at":"2014-02-19T12:02:16.000Z","size":164,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-26T20:49:21.026Z","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/softius.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":"2013-01-20T12:20:08.000Z","updated_at":"2014-02-19T12:02:16.000Z","dependencies_parsed_at":"2022-08-24T13:39:38.416Z","dependency_job_id":null,"html_url":"https://github.com/softius/exceptionist","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/softius%2Fexceptionist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softius%2Fexceptionist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softius%2Fexceptionist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softius%2Fexceptionist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softius","download_url":"https://codeload.github.com/softius/exceptionist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227129054,"owners_count":17735065,"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-29T12:47:50.597Z","updated_at":"2024-11-29T12:47:52.836Z","avatar_url":"https://github.com/softius.png","language":"PHP","readme":"exceptionist\n============\n\nExceptionist provides exception handler for PHP 5.3+. Based on the application environment you can choose to display a detailed error report with stack trace or a mini report just mentioning the exception occured. \n\nInstallation\n------------\nExceptionist is available on packagist. All you need is to add the following lines in your project `composer.json`:\n\n``` JSON\n\t{\n    \t\"require\": {\n        \t\"softius/exceptionist\": \"0.1\"\n\t    }\n\t}\n```\nand install via composer:\n\n```\n\tphp composer.phar install\n```\n\nThen, you will need to setup `GenericExceptionHandler`. You are adviced to setup the following as early as possible in your script.\n\n``` PHP\nset_exception_handler(array(new \\Exceptionist\\GenericExceptionHandler(array('project_root' =\u003e 'project_root_dir')), 'handle'));\t\n```\n\nConfiguration\n-------------\n\n`GenericExceptionHandler` accepts a configuration array with the following options:\n\n* `project_root`: defines the project root directory, default is `null`. \n* `template_script`: full path of the template to be used. The following built-in templates are available: `\\Exceptionist\\ExceptionReporter::TEMPLATE_DETAILED`\n* `code_block_length`: number of lines to be displayed in each code block, default is 10. \n\nHow it works\n------------\n`ExceptionHandler` is using `ExceptionReporter` class to generate and display exception reports. This happens only and only if an exception is thrown and not caught within a try/catch block. Templates are available in `templates` which can be copied, modified and adjusted to your needs, if necessary.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftius%2Fexceptionist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftius%2Fexceptionist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftius%2Fexceptionist/lists"}