PHP code example of antonmarin / traceable-pdo
1. Go to this page and download the library: Download antonmarin/traceable-pdo 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/ */
antonmarin / traceable-pdo example snippets
...
'db' => [
'class' => yii\db\Connection::class,
'dsn' => 'mysql:host=localhost;dbname=stay2',
'username' => 'root',
'password' => 'pass',
'charset' => 'utf8',
'pdoClass' => antonmarin\TraceablePDO\PDO::class, // this line adds traces
],
...