palvoelgyilaszlo/csv-to-ftp

v1.0.8 2021-05-18 14:39 UTC

This package is auto-updated.

Last update: 2024-11-12 14:30:11 UTC


README

Embed

use CsvFtp\CsvToFtp;

Use

$configuration = [ 'ftp_server'  => 'XXX',
                   'ftp_username'=> 'XXX',
                   'ftp_userpass'=> 'XXX',
                   'file_name'   => 'TEST15.csv' ];

$dataArray = [ 'example 1' => '1',
               '....'      => '2'];

$csv = new CsvToFtp( $configuration );

$csv->addHead(['this','andthis']) // Method addHead() is optional 
    ->setData($dataArray)
    ->generateCSV();