PHP code example of tsaikoga / performance-printer
1. Go to this page and download the library: Download tsaikoga/performance-printer 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/ */
tsaikoga / performance-printer example snippets
return [
// print request message
'request' => true,
// print response datas
'response' => false,
// lish(en) and Chinese(cn) now
'lang' => 'cn',
'query' => [
// print raw sql
'raw_sql' => true,
// print explain sql
'explain' => true,
// Same queries with different bindings are superimposed
'unique_query' => true,
// The connections
'connections' => ['mysql'],
],
// enable this package or disable it
'enable' => true,
// log
'log' => [
// is logging enable?
'enable' => true,
// The path that the log file stored
'filepath' => '/tmp/performance_printer.log',
],
];
bash
php artisan serve
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.