PHP code example of devlion / converter-php-client

1. Go to this page and download the library: Download devlion/converter-php-client 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/ */

    

devlion / converter-php-client example snippets


    

    on\Converter\Client;

    $client = new Client('token');
    

$inputFiles = ['/samples/sample.mdf'];
$options = ['outputFormat' => 'csv'];

$client->convert($inputFiles, $options)

$client->extract();

$client->getZipFilePath();

$client->getExtractedDirectory();

$databases = $client->extract()->getDatabases();

$tables = $client->getTables('sample');

$rows = $client->getTableRows('POINTS_TABLE');

$data = $client->getDatabasesTables();

$data = $client->getDatabasesTableRows('POINTS_TABLE');

use Devlion\Converter\Client;

$client = new Client('token');

$inputFiles = ['/samples/sample.mdf'];

$databases = $client->convert($inputFiles, $options)->extract()->getDatabases();
$outputFile = $client->getZipFilePath();

echo "Conversion successful, check out $outputFile!\n";
echo "<pre>";
print_r($databases);
json
    {
        "on/converter-php-client": "*"
        }
    }
    
bash
    php composer.phar install