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

This package is auto-updated.

Last update: 2025-06-10 23:46:14 UTC


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);