buzzingpixel / symfony-var-dumper-decorator
Installs: 959
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Shell
Requires
- php: >=8.1
- symfony/var-dumper: ^6.2
Requires (Dev)
- doctrine/coding-standard: ^11.0.0
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-strict-rules: ^1.5
- squizlabs/php_codesniffer: ^3.6
README
Purpose
Symfony's VarDumper component is great, but when using it in a stand-alone context, it does not show the file and line number the dump is coming from. Adding this package as a dev requirement will add that functionality to your dumps.
In addition, some configuration is required to use the dump server when using VarDumper as a stand-alone component. This package automatically sets that up.
Usage
Installation
composer require --dev buzzingpixel/symfony-var-dumper-decorator
Now when you call dump()
or dd()
, you'll get file and line number context with your dumps. And if you start the dump server, your dumps should automatically connect.
Configuration
Configuration is controlled by env
.
VAR_DUMPER_THEME
Because the author of this package prefers light themes, the default is light
. You can set this env variable to dark
to get VarDumper's dark theme.
VAR_DUMPER_SERVER_ADDRESS
This defaults to tcp://127.0.0.1:9912
but if you need to change this for any reason, you can do so with this environment variable.