laravel-dump-server

Bring Symfony's Var-Dump Server to Laravel

  • 所有者: beyondcode/laravel-dump-server
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Laravel Dump Server

Latest Version on Packagist
Quality Score
Total Downloads

Bringing the Symfony Var-Dump Server to Laravel.

This package will give you a dump server, that collects all your dump call outputs, so that it does not interfere with HTTP / API responses.

If you want to learn how to create reusable PHP packages yourself, take a look at my upcoming PHP Package Development video course.

Installation

You can install the package via composer:

composer require --dev beyondcode/laravel-dump-server

The package will register itself automatically.

Optionally you can publish the package configuration using:

php artisan vendor:publish --provider=BeyondCode\\DumpServer\\DumpServerServiceProvider

This will publish a file called debug-server.php in your config folder.
In the config file, you can specify the dump server host that you want to listen on, in case you want to change the default value.

Usage

Start the dump server by calling the artisan command:

php artisan dump-server

You can set the output format to HTML using the --format option:

php artisan dump-server --format=html > dump.html

And then you can, as you are used to, put dump calls in your methods. But instead of dumping the output in your current HTTP request, they will be dumped in the artisan command.
This is very useful, when you want to dump data from API requests, without having to deal with HTTP errors.

You can see it in action here:

Dump Server Demo

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email marcel@beyondco.de instead of using the issue tracker.

Credits

License

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

主要指标

概览
名称与所有者beyondcode/laravel-dump-server
主编程语言PHP
编程语言PHP (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2018-07-09 09:56:42
推送于2025-02-26 08:28:41
最后一次提交2025-02-26 09:27:59
发布数18
最新版本名称2.1.0 (发布于 )
第一版名称0.1.0 (发布于 )
用户参与
星数1.6k
关注者数13
派生数86
提交数100
已启用问题?
问题数51
打开的问题数9
拉请求数34
打开的拉请求数1
关闭的拉请求数16
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?