{"id":33978346,"url":"https://github.com/autologic-web/symfony-json-exceptions","last_synced_at":"2026-05-06T00:04:04.105Z","repository":{"id":62489671,"uuid":"136459077","full_name":"autologic-web/symfony-json-exceptions","owner":"autologic-web","description":"Automatically convert exceptions to JSON for APIs in Symfony 2, 3 \u0026 4","archived":false,"fork":false,"pushed_at":"2019-12-23T10:19:07.000Z","size":31,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-14T15:40:33.615Z","etag":null,"topics":["exceptions","json","symfony"],"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/autologic-web.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":"2018-06-07T10:08:53.000Z","updated_at":"2018-06-07T15:22:26.000Z","dependencies_parsed_at":"2022-11-02T09:31:19.070Z","dependency_job_id":null,"html_url":"https://github.com/autologic-web/symfony-json-exceptions","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/autologic-web/symfony-json-exceptions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autologic-web%2Fsymfony-json-exceptions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autologic-web%2Fsymfony-json-exceptions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autologic-web%2Fsymfony-json-exceptions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autologic-web%2Fsymfony-json-exceptions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autologic-web","download_url":"https://codeload.github.com/autologic-web/symfony-json-exceptions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autologic-web%2Fsymfony-json-exceptions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["exceptions","json","symfony"],"created_at":"2025-12-13T02:48:37.686Z","updated_at":"2026-05-06T00:04:04.082Z","avatar_url":"https://github.com/autologic-web.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Symfony JSON Exceptions\n\n[![Build Status](https://travis-ci.org/autologic-web/symfony-json-exceptions.svg?branch=master)](https://travis-ci.org/autologic-web/symfony-json-exceptions) [![StyleCI](https://styleci.io/repos/136459077/shield?branch=master)](https://styleci.io/repos/136459077) [![Maintainability](https://api.codeclimate.com/v1/badges/f84a52fb33300dfa6a3b/maintainability)](https://codeclimate.com/github/autologic-web/symfony-json-exceptions/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/f84a52fb33300dfa6a3b/test_coverage)](https://codeclimate.com/github/autologic-web/symfony-json-exceptions/test_coverage)\n\n### Handle exceptions gracefully in your Symfony APIs.\n\n```bash\n$ composer install autologic-web/symfony-json-exceptions\n```\n\nInclude the bundle in `config/bundles.php` in Symfony 4+ or in `AppKernel.php` in Symfony 2+ and you're done for production.\n\nIf you want to use pretty exceptions in dev, add the following to the root level of your config, or a new file in Symfony 4+:\n\n```yaml\nautologic_json_exceptions:\n    pretty_dev: true\n```\n\nCompatible with Symfony 2, 3 \u0026 4. PHP 5.3 to 7.2.\n\nReturns consistently formatted errors with title, detail and status. Not found example:\n\n```json\n{\n    \"errors\": [\n        {\n            \"title\": \"Not found\",\n            \"detail\": \"No route found for \\\"GET /api/silly\\\"\",\n            \"status\": 404\n        }\n    ]\n}\n```\n\nCredit to [@dannym87](https://github.com/dannym87) for first implementing this in one of our services. It's now a library for re-use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautologic-web%2Fsymfony-json-exceptions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautologic-web%2Fsymfony-json-exceptions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautologic-web%2Fsymfony-json-exceptions/lists"}