{"id":13409567,"url":"https://github.com/crazycodr/standard-exceptions","last_synced_at":"2026-01-30T14:33:59.446Z","repository":{"id":11691555,"uuid":"14203448","full_name":"crazycodr/standard-exceptions","owner":"crazycodr","description":"A small library that aims at supplementing default exceptions in PHP","archived":false,"fork":false,"pushed_at":"2020-05-26T17:28:41.000Z","size":231,"stargazers_count":147,"open_issues_count":0,"forks_count":10,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-09-14T23:43:15.442Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crazycodr.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":"2013-11-07T12:44:47.000Z","updated_at":"2023-10-06T18:06:21.000Z","dependencies_parsed_at":"2022-08-07T06:16:29.833Z","dependency_job_id":null,"html_url":"https://github.com/crazycodr/standard-exceptions","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodr%2Fstandard-exceptions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodr%2Fstandard-exceptions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodr%2Fstandard-exceptions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodr%2Fstandard-exceptions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazycodr","download_url":"https://codeload.github.com/crazycodr/standard-exceptions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243593482,"owners_count":20316192,"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-07-30T20:01:02.013Z","updated_at":"2026-01-30T14:33:59.433Z","avatar_url":"https://github.com/crazycodr.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/crazycodr/standard-exceptions/version.png)](https://packagist.org/packages/crazycodr/standard-exceptions) [![Monthly Downloads](https://poser.pugx.org/crazycodr/standard-exceptions/d/monthly)](https://packagist.org/packages/crazycodr/standard-exceptions) [![Build Status](https://travis-ci.org/crazycodr/standard-exceptions.png?branch=master)](https://travis-ci.org/crazycodr/standard-exceptions)\n\n# Standard Exceptions Package\n\nThis project is aimed at providing additional standard exceptions to [PHP](http://www.php.net/). \n\nMany exceptions that are missing from the SPL are constantly being reproduced in different projects. By providing a package of high-quality, well organised exceptions, it will, in the long run, increase interoperability between projects and libraries.\n\n# Getting started\n\nTo install `Standard Exceptions`, just require it using [Composer](http://www.getcomposer.org/):\n\n```\n$ composer require crazycodr/standard-exceptions\n```\n\nAnd then just start throwing exceptions:\n\n```php\nthrow new \\Exceptions\\Data\\NotFoundException();\n```\n\nOr catch them:\n\n```php\ntry {\n\n} catch(\\Exceptions\\Data\\NotFoundExceptions $ex){\n\n}\n```\n\nOr even better, catch exceptions with similar means:\n\n```php\ntry {\n\n} catch(\\Exceptions\\Tag\\NotFoundTag $ex){\n   \n}\n```\n\nFor more information, visit the [Getting Started Page](docs/getting-started.md) or for even more information, you get read the whole [Documentation](docs/index.md).\n\nIf you need help upgrading for the old version 1 to this version, see the [Upgrading from Version 1 to Version 2](docs/upgrade-1-2.md) documentation page.\n\n# Features\n\n* Highly comprehensive list of exceptions and namespaces: [Browse](docs/exceptions/)\n* [Tag interfaces](docs/tags.md) to catch common exceptions with similar means but different contexts\n* Exceptions define default messages and error codes using the [DefaultsInterface and DefaultConstructorTrait](docs/helpers.md)\n* Throwing new exceptions from another exception allows easier exception chaining using [FromException helper](docs/helpers.md)\n\n# Contribution\n\nDon't hesitate to contribute to this package by:\n\n* Proposing new exceptions or namespaces\n* Fix documentation issues or bugs by opening PRs\n* Using it and spreading it's use throughout projects and libraries\n\n\nIf you want to contribute to the code base go to the [Contributing page](docs/contribute.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazycodr%2Fstandard-exceptions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazycodr%2Fstandard-exceptions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazycodr%2Fstandard-exceptions/lists"}