PHP code example of mikejestes / scheezy
1. Go to this page and download the library: Download mikejestes/scheezy 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/ */
mikejestes / scheezy example snippets
$pdoHandle = new PDO("mysql:host=localhost;dbname=scheezy_test", 'root', '');
$schema = new \Scheezy\Schema($pdoHandle);
$schema->loadDirectory(dirname(__FILE__) . '/schemas/');
$schema->synchronize();
$schema = new \Scheezy\Schema($pdoHandle);
$schema->loadFile('/path/to/ponys.yaml');
$schema->synchronize();