yuriitatur/exceptions 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yuriitatur/exceptions

最新稳定版本:v1.0.0

Composer 安装命令:

composer require yuriitatur/exceptions

包简介

Simple exception package, to start extending your own classes

README 文档

README

Quality Gate Status Coverage

Exceptions

Composer package for throwing and handling common exceptions. It features a single base exception class that has to have all your logic and data, you want to report. Reuse or extend AppException. It has context data, http status code and string error type to cover most of the use cases that you expect from using an exception.

Why?

Instead of writing multiple error handlers that should be aware of each exception. Use only one that knows how to render/report/log (or maybe not) your error. Of course, you will still have to deal with your db/framework/3rd party exceptions, but due to dependency inversion, you can't make them a part of your core application. You can also make use of pre-defined InvalidArgumentExeption and ValidationException.

Installation

Composer:

composer require yuriitatur/exceptions

Testing

composer test

More to come

This is the most basic package of the bunch of cool packages. If you find this work useful, please consider becoming a sponsor.

License

This code is under MIT license, read more in the LICENSE file.

统计信息

  • 总下载量: 99
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固