PHP code example of blackmesasl / silex-chromephp
1. Go to this page and download the library: Download blackmesasl/silex-chromephp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
blackmesasl / silex-chromephp example snippets
use Blackmesa\SilexChromePhp\Provider\ChromePhpServiceProvider;
$app->register(new ChromePhpServiceProvider());
$app->get('/myroute', function() use ($app) {
try
{
$app['chromephp']->info('Let\'s render the view!');
return $app['twig']->render('mytemplate.html.twig');
}
catch(Exception $e)
{
$app['chromephp']->error($e);
throw $e;
}
$app['chromephp']->warn('This is impossible!!!');
});