Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2021-02-11 (2 months ago) | | Not yet rated by the users | | Total: 85 | | All time: 9,630 This week: 266 |
Version | | License | | PHP version | | Categories |
urp 1.0.0 | | Custom (specified... | | 5 | | HTML, PHP 5, Debug |
|
Description | | Author |
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. Innovation Award
February 2021
Winner |
Debugging applications is a common activity that many developers perform in order to find and fix issues in their code.
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.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 2x
Winner: 1x |
|
Details
urp • PHP debug print.
Basic Usage
use \radsectors\urp as urp;
urp::hello("Hello world.");
urp::number(7);
urp::try_this(4.893);
urp::label(true);
urp::items(['one' => 1, 'two' => 2, 'three' => 'green']);
urp::whatever(new \DateTime());
Sample Output:
hello: string(12) "Hello world."
number: int(7)
try_this: float(4.893)
label: bool(true)
items: array(3) {
["one"] => int(1)
["two"] => int(2)
["three"] => string(5) "green"
}
whatever: object(DateTime)#3 (3) {
["date"] => string(26) "2016-09-23 19:22:16.000000"
["timezone_type"] => int(3)
["timezone"] => string(15) "America/Chicago"
}
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.