PHP code example of jotaelesalinas / php-rwgen
1. Go to this page and download the library: Download jotaelesalinas/php-rwgen 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/ */
jotaelesalinas / php-rwgen example snippets
$input = new JLSalinas\RWGen\Readers\Csv($filename_customers);
$output_csv = new JLSalinas\RWGen\Writers\Csv($filename_output . '.csv');
$output_kml = new JLSalinas\RWGen\Writers\Kml($filename_output . '.kml');
foreach ( $input as $customer ) {
// ...some filtering and transforming...
$output_csv->send($customer_data);
$output_kml->send($customer_geolocation_data);
}
bash
$ composer