PHP code example of divineomega / uxdm-excel

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

    

divineomega / uxdm-excel example snippets


$excelSource = new ExcelSource(__DIR__.'/Users.xlsx');

$migrator = new Migrator;
$migrator->setSource($excelSource);

$excelDestination = new ExcelDestination(__DIR__.'/Users.xlsx');

$migrator = new Migrator;
$migrator->setDestination($excelDestination);

$migrator = new Migrator;
$migrator->addDestination($excelDestination, ['field1', 'field2']);
$migrator->addDestination($otherDestination, ['field3', 'field2']);