1. Go to this page and download the library: Download dumpio/client library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dumpio($user, 'user', 'blue'); // global helper, returns $user (chainable, like tap())
ddio($a, $b); // dump every arg, then die
// or: Dumpio::dump($user, 'user'); Dumpio::dd($a, $b);
Dumpio::make($user)->red()->label('user')->channel('auth')->send();
Dumpio::make($payload)->purple(); // auto-sends at end of statement
foreach ($rows as $row) {
Dumpio::make($row)->once(); // only the first iteration is sent
Dumpio::make($row)->limit(5); // at most 5 are sent
Dumpio::make($row)->count(); // one live-updating entry, "×N" in the viewer
}
User::query()
->where('name', 'John')
->dio() // → query dump (SQL + bindings so far)
->whereDate('email_verified_at', '2024-02-15')
->dio() // → query dump (with the extra clause)
->first();
collect($users)->dio('after filter'); // → var dump, returns the collection