Download the PHP package zidizei/debug without Composer

On this page you can find all versions of the php package zidizei/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

debug-php

Simple debugging utility for PHP to print out messages to stdout or the browser's JavaScript console, if supported.

Heavily inspired by debug for node.js.

Latest Stable Version Total Downloads License

Installation

Use Composer and add this to your composer.json:

"require": {
    "zidizei/debug", "~0.1.1"
}

Usage

debug-php lets you print out short debbuging messages for your PHP project either to stdout or to the JavaScript console of your browser, in case you are using this library on your website.

The above code will produce something like this when run using a web server and browser:

parser debug

Output to stdout will look more or less the same using colors defined by your shell.

Disabling debugging messages

By default, debug-php is good to go by just calling its methods. Since 0.1.1 you can call \Debug\off() to explicitly disable debugging messages. In combination with \Debug\on(), this could be used to programmatically decide to skip debug messages for certain sections of your code.

Multiple Profiles

You can use profiles to better distinguish some of your debug messages. The example above only uses one profile by calling:

\Debug\profile("parser")

If a profile by that name already exists, it will be closed. You can close the currently active (as in last opened) profile by omitting the parameter:

\Debug\profile()

If there are no active profiles, it will open a default one (aptly named default). Note that there has to be at least one profile open for debugging.

The following code example demonstrates the use of multiple debugging profiles:

The above code will produce something like this when run using a web server and browser:

multiple profiles debug

Output to stdout will look more or less the same using colors defined by your shell.

Time measurements

The milliseconds at the end of each debug line indicate the time difference between the execution of the current debug message and the previous one.

Additionally, each profile duration is measured and displayed once it has been closed.


All versions of debug with dependencies

PHP Build Version
Package Version
Requires php Version >=4.3.0
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 zidizei/debug contains the following files

Loading the files please wait ....