定制 red-explosion/undefined 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

red-explosion/undefined

最新稳定版本:v0.2.0

Composer 安装命令:

composer require red-explosion/undefined

包简介

API error handling for Laravel.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Undefined for Laravel takes care of formatting exceptions and errors into nicely formatted JSON responses.

Warning Package is in early stages of development. It means there may be bugs and API is very likely to change. Create an issue if you spot a bug. Ideas are welcome.

Installation

You can install the package via composer:

composer require red-explosion/undefined

You can publish the config file with:

php artisan vendor:publish --tag="undefined-config"

Usage

In order to use Undefined, you need to replace your exception handler. Replace the following in your bootstrap/app.php file:

$app->singleton(
    Illuminate\Contracts\Debug\ExceptionHandler::class,
    App\Exceptions\Handler::class
);

with the following:

$app->singleton(
    Illuminate\Contracts\Debug\ExceptionHandler::class,
    RedExplosion\Undefined\ExceptionHandler::class
);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

If you discover a security vulnerability, please send an e-mail to Ben Sherred via ben@redexplosion.co.uk. All security vulnerabilities will be promptly addressed.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-22