Skip to content

harryqt/hyperf-dumper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperf Dumper

A lightweight wrapper around symfony/var-dumper for the Hyperf framework, offering a Laravel-style dump() function within Hyperf.

The package provides convenient global hd() and dump() functions — mirroring Laravel’s dump() — for debugging variables seamlessly in both HTTP and CLI environments.

🧩 Install

composer require harryqt/hyperf-dumper

🚀 Usage

In Controllers / HTTP context:

This will dump variables as a pretty HTML response.

return hd($var1, $var2, $var3);

In CLI scripts:

This will dump variables in the terminal.

dump($var1, $var2, $var3);

About

Laravel equivalent dump() function for Hyperf

Resources

Stars

Watchers

Forks

Languages

  • PHP 100.0%