flextype-components / debug
Debug component provides a simple methods for debugging variables, objects, arrays, etc by outputting information to the display.
Installs: 3 451
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.1.3
This package is auto-updated.
Last update: 2024-10-25 10:47:18 UTC
README
Debug component provides a simple methods for debugging variables, objects, arrays, etc by outputting information to the display.
Installation
composer require flextype-components/debug
Usage
use Flextype\Component\Debug\Debug;
Save current time for current point
Debug::elapsedTimeSetPoint('point_name');
Get elapsed time for current point
echo Debug::elapsedTime('point_name');
Save current memory for current point
Debug::memoryUsageSetPoint('point_name');
Get memory usage for current point
echo Debug::memoryUsage('point_name');
Print the variable $data and exit if exit = true
Debug::dump($data);
Prints a list of the configuration settings read from php.ini
Debug::phpini();
Prints a list of all currently loaded PHP extensions.
Debug::extensions();
Prints a list of all currently declared constants.
Debug::constants();
Prints a list of all currently declared functions.
Debug::functions();
Prints a list of all currently included (or required) files.
Debug::includes();
Prints a list of all currently declared interfaces.
Debug::interfaces();
Prints a list of all currently declared classes.
Debug::classes();
License
See LICENSE