• PHP reference
  • Manager

ListExporter

class Manager\ListExporter

A simple class to export an array of associative arrays as .csv, .json, .xml or .xml files.

Properties

string $format

array $data

string $filename

string $sheetname

Methods

__construct($data, string $name = 'file', string $format = 'json', string $sheetname = '')

ListExporter constructor.

Parameters

  • $data
  • string $name
  • string $format
  • string $sheetname

Exceptions