PHP code example of diablomedia / gpcsv-generator
1. Go to this page and download the library: Download diablomedia/gpcsv-generator 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/ */
diablomedia / gpcsv-generator example snippets
$payment = new GPCSV\Payment();
$payment->setDestinationCountry($country);
// Set other values...
$csv = new GPCSV\File();
$csv->addPayment($payment);
// Add other payments...
echo $csv->getCsvString();
$payment = new Payment(['autoClean' => false]);
// or:
$payment = new Payment();
$payment->setOptionAutomaticallyCleanFields(false);