{"id":34742683,"url":"https://github.com/yonna-framework/throwable","last_synced_at":"2026-05-25T22:03:35.225Z","repository":{"id":57087878,"uuid":"196036436","full_name":"yonna-framework/throwable","owner":"yonna-framework","description":"Yonna Throwable/Exception ","archived":false,"fork":false,"pushed_at":"2020-05-15T09:48:52.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-26T15:38:37.551Z","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/yonna-framework.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-07-09T15:31:11.000Z","updated_at":"2019-09-12T15:29:59.000Z","dependencies_parsed_at":"2022-08-24T07:40:08.954Z","dependency_job_id":null,"html_url":"https://github.com/yonna-framework/throwable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yonna-framework/throwable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonna-framework%2Fthrowable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonna-framework%2Fthrowable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonna-framework%2Fthrowable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonna-framework%2Fthrowable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yonna-framework","download_url":"https://codeload.github.com/yonna-framework/throwable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonna-framework%2Fthrowable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33494784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T14:31:05.219Z","status":"ssl_error","status_checked_at":"2026-05-25T14:31:02.878Z","response_time":57,"last_error":"SSL_read: 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":[],"created_at":"2025-12-25T04:24:31.675Z","updated_at":"2026-05-25T22:03:35.190Z","avatar_url":"https://github.com/yonna-framework.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/github/license/yonna-framework/throwable.svg)](https://packagist.org/packages/yonna/throwable)\n[![Repo Size](https://img.shields.io/github/repo-size/yonna-framework/throwable.svg)](https://packagist.org/packages/yonna/throwable)\n[![Downloads](https://img.shields.io/packagist/dm/yonna/throwable.svg)](https://packagist.org/packages/yonna/throwable)\n[![Version](https://img.shields.io/github/release/yonna-framework/throwable.svg)](https://packagist.org/packages/yonna/throwable)\n[![Php](https://img.shields.io/packagist/php-v/yonna/throwable.svg)](https://packagist.org/packages/yonna/throwable)\n\n## Yonna throwable库\n\n```\nthrowable更好地管理抛出/错误\n你可以简单地运送默认的组件操作你的错误\n```\n\n## \n\n#### 如何安装\n\n##### 可以通过composer安装：`composer require yonna/throwable`\n\n##### 可以通过git下载：`git clone https://github.com/yonna-framework/throwable.git`\n\n\u003e Yonna demo：[GOTO yonna](https://github.com/yonna-framework/yonna)\n\n### Example\n\n\u003e 使用 Throwable 管理你的 Exception\n```php\n\u003c?php\n    \n\n    use Yonna\\Throwable\\Exception;\n    \n    // 按原来捕捉抛出\n    try{\n        // ...\n    } catch (\\Throwable $e){\n        Exception::origin($e);\n    }\n    \n    Exception::throw('default exception');\n    Exception::params('oh my params');\n    Exception::database('oh my database');\n    Exception::sdk('oh my sdk');\n    Exception::debug('oh my debug');\n    // more\n    \n?\u003e\n```\n\n\u003e 使用 Throwable 管理你的 Error\n```php\n\u003c?php\n    \n\n    use Yonna\\Throwable\\Error;\n    \n    Error::throw('default');\n    Error::notice('notice');\n    Error::warning('warning');\n    Error::deprecated('deprecated');\n    \n?\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonna-framework%2Fthrowable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyonna-framework%2Fthrowable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonna-framework%2Fthrowable/lists"}