mfajfr / tarsago-export
There is no license information available for the latest version (4.3) of this package.
Put data into csv files and export them to SFTP
4.3
2022-01-10 16:37 UTC
Requires
- fzaninotto/faker: ^1.9
- phpseclib/phpseclib: ^2.0
README
Installation
composer require mfajfr/tarsago-export
Using
Creating row
Row represents order from telemarketing etc.
$row = new \TarsagoExport\Models\Telemarketing\Row($param1, $param2, ...); // implements IRow
Creating transaction
Transaction represents list of rows (orders) from one day or specific period
$transaction = new \TarsagoExport\Models\Telemarketing\Transaction(); // implements ITransaction $transaction->addRow($row); // Adding rows
Uploading (to SFTP)
$exporter = new \TarsagoExport\Exporters\SFTPExporter($ip, new \TarsagoExport\Credentials\UserPasswordCredentials($username, $password)); $exporter->upload('/path/to/file.csv', $transaction);