Download the PHP package hazardland/debug without Composer

On this page you can find all versions of the php package hazardland/debug. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package debug

function debug ($object)

function debug (mixed $object, string/boolean $title=null, boolean/string $plain=false, integer $limit=6)

debug is a single function for visually analything / logging complex deep level objects and arrays.

Example of debug call html output:

Example of cli mode output

Or

Let us have an example classes (check ./demo/demo.php)

And intialize them in a following manner:

Now let us start debugging $test1. A simpliest call:

Will output following:

Note that object of class test3 is collapsed and only first property is visible you can unfold it by clicking + or you can just debug object with everything expanded by calling:

So now we see hidden parts of our object by default

Putting title on debug:

To have both expanded and titled debug we should just put * symbol in the begining of title string like this:

On a depth level 6 (considering starting level is 0) only ... is visible because of depth rendering limit which is by default 6. To unlock other levels we should incrase limit.

Third parameter is for plain text output if you pass true

It will output something like following indented with 4 space tabs:

To log plain text output in file just pass file path as a third parameter

And lastly if you are using subl-protocol plugin for sublime (https://github.com/thecotne/subl-protocol) you can unfold debug backtrace and with one click in browser jump on the specific file and line in sublime text editor:

To debug in error log use 'error_log' in 3d parameter: ` To view error log nicely formated use: Or if you want all other error log messages: `


All versions of debug with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.21
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hazardland/debug contains the following files

Loading the files please wait ....