PHP code example of shaunfreeman / php-mysql-xdevapi
1. Go to this page and download the library: Download shaunfreeman/php-mysql-xdevapi 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/ */
shaunfreeman / php-mysql-xdevapi example snippets
...
$aggregator = new ConfigAggregator([
\ShaunFreeman\PhpMysqlXdevapi\ConfigProvider::class,
...
declare(strict_types=1);
/**
* Change the values to match your mysql login
**/
return [
'xdevapi' => [
'user' => 'dbuser',
'password' => '654321',
'host' => 'mysql',
'schema' => 'dbname',
'port' => 33060
],
];
bash
$ composer