nozavroni / csvelte

🕺🏻 CSV and Tabular Data library for PHP
http://phpcsv.com/
Other
6 stars 0 forks source link

Multiple headers support #188

Open nozavroni opened 6 years ago

nozavroni commented 6 years ago

While refactoring the CSVelte\Taster class into CSVelte\Sniffer, I began trying to implement a method within the header sniffer to try to detect how many header rows there likely were. Then it occurred to me how complex it would be to support multiple headers. This is a feature best saved for much later, only after the most important features have been implemented.

But when I do decide to implement multiple headers, if I do:

For more on this, see the CSVW documentation: https://www.w3.org/TR/tabular-data-primer/ As well as this issue on CSVW conformance within this library: https://github.com/nozavroni/csvelte/issues/28