PHP code example of linkorb / transmogrifier

1. Go to this page and download the library: Download linkorb/transmogrifier 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/ */

    

linkorb / transmogrifier example snippets


$application->add(new \LinkORB\Transmogrifier\Command\DatasetApplyCommand());

$db = new Database();
// Optionally initialize db parameters by file, cli options, or explicit values
$db->parseConf('/path/to/my/dbconf/test.conf');
$db->connect();

$dataset = new Dataset();
$dataset->loadDatasetFile('/path/to/my/dataset.yml');
$dataset->applyTo($db);
ini
name=test
server=127.0.0.1
username=susie
password=mrbun
driver=mysql