roots / sage-installer

Sage 9 installer
https://github.com/roots/sage
MIT License
30 stars 85 forks source link

Illuminate/Support composer suggestion for symfony/var-dumper #6

Open webstractions opened 6 years ago

webstractions commented 6 years ago

After installing project dependancies, I noticed this suggestion.

illuminate/support suggests installing symfony/var-dumper (Required to use the dd function (~3.2).)

I work with Laravel and the dd( $variable ) function is pretty cool for debugging. It 'dumps and dies', which is basically another way of doing:

var_dump($variable);
die;

It is also better than var_dump, in that it pretty prints variables, arrays, and objects. In the case of objects, they come in the form of collapsible trees that you can expand and collapse. Great for json, collections, etc.

Also, in Illuminate/Support 5.5 they added other goodies such as dump(), which dumps the variable inline and continues.