PHP code example of mackstar / spout
1. Go to this page and download the library: Download mackstar/spout 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/ */
mackstar / spout example snippets
$config = [
'driver' => 'pdo_sqlite',
'path' => __DIR__ . '/test_db.sqlite3', // sets DB location to root path
'charset' => 'UTF8'
];
return [
'master_db' => $config,
'slave_db' => $config
];
php -S localhost:8080 -t var/www var/www/index.php