Download the PHP package blackmesasl/silex-chromephp without Composer
On this page you can find all versions of the php package blackmesasl/silex-chromephp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download blackmesasl/silex-chromephp
More information about blackmesasl/silex-chromephp
Files in blackmesasl/silex-chromephp
Package silex-chromephp
Short Description Silex package to implement ChromePHP as ServiceProvider
License MIT
Homepage http://github.com/blackmesasl/silex-chromephp
Informations about the package silex-chromephp
SilexChromePhp
SilexChromePhp is a wrapper around ccampbell/chromephp
(https://github.com/ccampbell/chromephp) library that allows to debug PHP applications with the Chrome Logger Google Chrome extension.
The ChromePhpServiceProvider easily integrate ChromePhp into Silex Micro Framework (http://silex.sensiolabs.org)
Installation
SilexChromePhp and ChromePhp
Add blackmesasl/silex-chromephp
to your dependencies.
Via command line:
php composer.phar require "blackmesasl/silex-chromephp":"dev-master"
or adding the following line to your composer.json
file:
"blackmesasl/silex-chromephp": "dev-master"
and running php composer.phar update
Chrome Logger Extension
To be able to see the debug messages you send from your server side code you need to install the Chrome Logger Extension from the Chrome Web Store.
Once you have the service provider on you Silex project and the extension installed on your Chrome Browser just enable the extension to start getting your debugging information on the console panel of the Developer Tools.
For more information take a look of Chrome Logger website.
Usage
Import the namespace and register the ServiceProvider on your Silex application:
Now you can access to $app['chromephp']
object and call it's methods.
Available methods
info
warn
error
log
table
group
groupCollapsed
groupEnd
The ChromePhpServiceProvder make use of $app['debug']
flag to decide whether or not to send de info to the browser.