beyondcode / laravel-dump-server by beyondcode

Symfony Var-Dump Server for Laravel
32,897,502
1,502
16
Package Data
Maintainer Username: beyondcode
Maintainer Contact: marcel@beyondco.de (Marcel Pociot)
Package Create Date: 2018-07-09
Package Last Update: 2024-04-05
Home Page: https://beyondco.de/docs/laravel-dump-server/installation
Language: PHP
License: MIT
Last Refreshed: 2024-04-18 15:03:02
Package Statistics
Total Downloads: 32,897,502
Monthly Downloads: 412,281
Daily Downloads: 17,189
Total Stars: 1,502
Total Watchers: 16
Total Forks: 80
Total Open Issues: 27

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.