PHP code example of plasma / driver-mysql
1. Go to this page and download the library: Download plasma/driver-mysql 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/ */
plasma / driver-mysql example snippets
use Plasma\Client;
use Plasma\Drivers\MySQL\DriverFactory;
use React\EventLoop\Factory;
$loop = Factory::create();
$factory = new DriverFactory($loop, array());
$client = Client::create($factory, 'user:password@localhost:3306/database', array());
// Code which uses the client to run queries against the database
$loop->run();