Download the PHP package pointybeard/helpers-functions-debug without Composer
On this page you can find all versions of the php package pointybeard/helpers-functions-debug. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pointybeard/helpers-functions-debug
More information about pointybeard/helpers-functions-debug
Files in pointybeard/helpers-functions-debug
Package helpers-functions-debug
Short Description A collection of helpful functions to assist with debugging
License MIT
Homepage https://github.com/pointybeard/helpers-functions-debug
Informations about the package helpers-functions-debug
PHP Helpers: Debug Functions
- Version: v1.0.1
- Date: May 26 2019
- Release notes
- GitHub repository
A collection of helpful functions to assist with debugging
Installation
This library is installed via Composer. To install, use composer require pointybeard/helpers-functions-debug
or add "pointybeard/helpers-functions-debug": "~1.1"
to your composer.json
file.
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Requirements
This library makes use of the PHP Helpers: Path Functions (pointybeard/helpers-functions-paths
) and PHP Helpers: String Functions (pointybeard/helpers-functions-strings
). They are installed automatically via composer.
To include all the PHP Helpers packages on your project, use composer require pointybeard/helpers
or add "pointybeard/helpers": "~1.1"
to your composer file.
Usage
This library is a collection of helpful functions to assist with debugging. They are included by the vendor autoloader automatically. The functions have a namespace of pointybeard\Helpers\Functions\Debug
The following functions are provided:
dd()
readable_debug_backtrace()
Example usage:
Placeholders
The format of each trace line produced by Debug\readable_debug_backtrace() can be modified by setting the format
argument. The default format is [{{PATH}}/{{FILENAME}}:{{LINE}}] {{CLASS}}{{TYPE}}{{FUNCTION}}();
which looks something like [../path/to/test.php:24] foo->__construct();
.
Placeholders available are:
- PATH
- FILENAME
- LINE
- CLASS
- TYPE
- FUNCTION
Support
If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.
Contributing
We encourage you to contribute to this project. Please check out the Contributing documentation for guidelines about how to get involved.
License
"PHP Helpers: Debug Functions" is released under the MIT License.
All versions of helpers-functions-debug with dependencies
pointybeard/helpers-functions-paths Version ~1
pointybeard/helpers-functions-strings Version ~1