sonypradana / here
Dump every line dev need
v0.1.3
2022-10-21 08:00 UTC
Requires
- php: ^7.4 || ^8.0
- react/socket: ^1.12
- sonypradana/php-library: ^0.12
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.9.5
- phpstan/phpstan: ^1.8.2
- phpunit/phpunit: ^9.5.21
This package is auto-updated.
Last update: 2024-04-09 11:36:08 UTC
README
Dump your current line of code, for make sure your on right tract.
Installation
composer require sonypradana/here --dev
How to Use
Put here()
anywhere in your code
... here()->dump(); ...
Avilable API
here()
, register dump log.here()->dump()
, dump current line.here()->dumpAll()
, dump all registered.here()->count()
, count how many execution by group name.here()->countAll()
, count all group.
Other
here()->dumpIf()
, dump the current line if a condition is true.here()->info()
, dump the current line without code snapshot.track()
, print debug backtrace information.work()
, a short hand forhere()->dump()
.
Todo
- Implement socket reporting.
- Implement socket reporting with a browser view.
-
here()->count()
Implement here()->count() with grouping by filename.