Author: Manuel Lemos
As part of the debugging activity, displaying values of variables in certain parts of the code that has issues, is an essential part of the developer work.
This class provides a solution to display variable values that can format the values in a colored way to highlight different parts of the values.
The class can also display the name of the section of the code that is being inspected by showing that name near the values of the variable being displayed, as if it was the name of a function that is calling some code passing the variable value as parameter.
About the urp Package
The package urp is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.
The basic purpose is: Display the values of variables in HTML pages
Here follows in more detail what it does:
This class can display the values of variables for debugging.
It can take calls to static functions that take variable values to display.
The class can display the name of the static function followed by a dump of the variable value according to its type using its own code to display the variable value.
The values can be rendered optionally to be displayed in HTML pages using colors to distinguish the types of variables.
The urp can be downloaded from download page or be installed using the PHP Composer tool following instructions in the Composer install instructions page.
This package was considered notable for implementing its benefits in a way that is worth noticing.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.
One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.
You need to be a registered user or login to post a comment
Login Immediately with your account on:
No comments were submitted yet.