palvoelgyilaszlo / csv-to-ftp
v1.0.8
2021-05-18 14:39 UTC
Requires
- laszlopalvoelgyi/helper: ^1.0
- php-di/php-di: ^6.3
- symfony/dotenv: ^5.2
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();