Skip to content

Commit a600231

Browse files
committed
wip
1 parent 495a488 commit a600231

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

docs/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
packageName: Laravel Dump Server
3+
githubUrl: https://github.com/beyondcode/laravel-dump-server
4+
---

docs/installation.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: Installation
3+
order: 1
4+
---
5+
# Laravel Dump Server
6+
7+
Bringing the Symfony Var-Dump Server to Laravel.
8+
9+
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.
10+
11+
![Dump Server Demo](/img/example.gif)
12+
13+
# Installation
14+
15+
You can install the package via composer:
16+
17+
```bash
18+
composer require --dev beyondcode/laravel-dump-server
19+
```
20+
21+
The package will register itself automatically.
22+
23+
Optionally you can publish the package configuration using:
24+
25+
```bash
26+
php artisan vendor:publish --provider="BeyondCode\DumpServer\DumpServerServiceProvider"
27+
```
28+
29+
This will publish a file called `debug-server.php` in your `config` folder.
30+
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.

docs/usage.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Usage
3+
order: 2
4+
---
5+
6+
# Usage
7+
8+
Start the dump server by calling the artisan command:
9+
10+
```bash
11+
php artisan dump-server
12+
```
13+
14+
You can set the output format to HTML using the `--format` option:
15+
16+
```bash
17+
php artisan dump-server --format=html > dump.html
18+
```
19+
20+
Now you can put regular `dump` statements in your code. Instead of dumping the output directly in the HTTP response, the dumped data will be shown inside of your terminal / the running artisan command.
21+
22+
This is very useful, when you want to dump data from API requests, without having to deal with HTTP errors.

0 commit comments

Comments
 (0)