Download the PHP package helloarman/vardump without Composer
On this page you can find all versions of the php package helloarman/vardump. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download helloarman/vardump
More information about helloarman/vardump
Files in helloarman/vardump
Package vardump
Short Description This will help you to use var_dump() and print_r() on your blade with the
tag. People who are familiar with these php functions will benefit from this.
License MIT
Informations about the package vardump
Vardump
This will help you to use var_dump() and print_r() on your blade with the pre tag. People who are familiar with these php functions will benefit from this.
Package For
- Laravel
Installation
Goto your laravel Project and Run -
Explantation
print_r() is a helpful function in PHP for printing the contents of an associative array. It displays the structure and values of the array in a more human-readable format, which can be useful for debugging and understanding the data.
If you want to write the output of print_r() to a file with a well-formatted structure, including indentation and line breaks, you can make use of the pre tag in HTML. The pre tag preserves the formatting of the text within it, including white spaces, line breaks, and indentation. It will seem like this -
Each and every time its hard to write this while debugging. so I made this package for making easy access of it.
Good thing is, you can also pass an Object! it will convert that on -
Also, sometime we need to check data type of our variable.
It will also done by this package.
Usage/Examples
So now you can use those php function by a single laravel function -
On PHP File call this function by -
You can also call this function on your blade by adding @ as prefix -
Pass your any variable into it. It will show output on your view page.
Badges
Feedback
As this is the first release, There might be some improvement. If you need any addon or modification then do not hesitate to mention me. Contact me on -
Authors
- Arman Rahman ( @helloarman )