dreamfactorysoftware / df-core

The DreamFactory Core services and resources.
Apache License 2.0
14 stars 32 forks source link

No support for handling fputcsv options like delimiter #79

Open FaisalHussain95 opened 3 years ago

FaisalHussain95 commented 3 years ago

https://github.com/dreamfactorysoftware/df-core/blob/f8f39022bd44ee499c24fc795b72731ea3be0740/src/Utility/DataFormatter.php#L674

https://github.com/dreamfactorysoftware/df-core/blob/f8f39022bd44ee499c24fc795b72731ea3be0740/src/Utility/DataFormatter.php#L684

fputcsv ( resource $handle , array $fields , string $delimiter = "," , string $enclosure = '"' , string $escape_char = "\\" ) : int|false

cc : https://www.php.net/manual/en/function.fputcsv.php

Hii,

I would like to know if some kind of update could allow me to choose the delimiter of my exported CSV

Maybe as a Header variable like CSV-Delimiter ? or just by forcing a default value in the back office

Thanks

Kind reguards

Faisal