avto-dev / stacked-dumper-laravel
Stacked variables dumper for Laravel-based application
Installs: 293 853
Dependents: 2
Suggesters: 1
Security: 0
Stars: 5
Watchers: 1
Forks: 7
Open Issues: 0
Requires
- php: ^8.1
- illuminate/container: ~10.0 || ~11.0
- illuminate/contracts: ~10.0 || ~11.0
- illuminate/http: ~10.0 || ~11.0
- illuminate/support: ~10.0 || ~11.0
Requires (Dev)
- laravel/laravel: ~10.0 || ~11.0
- phpstan/phpstan: ^1.10.66
- phpunit/phpunit: ^10.5
Suggests
- spiral/roadrunner-laravel: RoadRunner ⇆ Laravel bridge
README
Stacked variables dumper | for Laravel-based application
Using this package you can dump any variables using \dev\dump()
and \dev\dd()
function without main process stopping or sending data to the standard output (last is required for running applications using RoadRunner).
Install
Require this package with composer using the following command:
$ composer require --dev avto-dev/stacked-dumper-laravel "^1.0"
Installed
composer
is required (how to install composer).
You need to fix the major version of package.
Usage
In any part of your application call \dev\dump()
and/or \dev\dd()
. That's all =)
RoadRunner use-case
For example, if you will try to dump('test');
in controller, you will see something like that:
worker error: invalid data found in the buffer (possible echo)
But, if you will use helpers provided by this package \dev\dump('test');
, all will forks fine:
"test"
Testing
For package testing we use phpunit
framework and docker-ce
+ docker-compose
as develop environment. So, just write into your terminal after repository cloning:
$ make build $ make latest # or 'make lowest' $ make test
Changes log
Changes log can be found here.
Support
If you will find any package errors, please, make an issue in current repository.
License
This is open-sourced software licensed under the MIT License.