harryqt / hyperf-dumper
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/harryqt/hyperf-dumper
Requires
- php: ^8.1
- ext-json: *
- hyperf/http-message: ^2.1 | ^3.1
- psr/http-message: ^2.0
- symfony/var-dumper: ^6.0 | ^7.0
Requires (Dev)
- laravel/pint: ^1.17
This package is auto-updated.
Last update: 2025-10-27 11:58:37 UTC
README
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);