Browser/javascript like console class for PHP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.editorconfig
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

PHPDebugConsole

Browser/javascript like console class for PHP

Website/Usage/Examples: http://www.bradkent.com/php/debug

  • PHP port of the javascript web console api
  • multiple simultaneous output options
    • ChromeLogger
    • FirePHP (no FirePHP dependency!)
    • HTML
    • Plain text / file
    • <script>
    • WebSocket (WAMP)
    • "plugin"
  • custom error handler
    • errors (even fatal) are captured / logged / displayed
    • send error notices via email (throttled as to not to send out a flood of emails)
  • password protected
  • send debug log via email

Screenshot of PHPDebugConsole's Output

Installation

This library requires PHP 5.4 (function array dereferencing, closure $this support) or later and has no userland dependencies.

It is installable and autoloadable via Composer as bdk/debug.

{
    "require": {
        "bdk/debug": "^2.0",
    }
}

Alternatively, download a release or clone this repository, then require src/Debug/Debug.php

See http://www.bradkent.com/php/debug for more information

Usage

See http://www.bradkent.com/php/debug

Methods

  • log
  • info
  • warn
  • error
  • assert
  • clear
  • count
  • group
  • groupCollapsed
  • groupEnd
  • table
  • time
  • timeEnd
  • trace
  • more

Tests / Quality

No Dependencies Build Status SensioLabsInsight

Changelog

http://www.bradkent.com/php/debug#changelog