PHP CSV converter

I have open-sourced a converter that I have created to help deal with some data processing tasks. It is very simple and is invoked from the command line. Go take a look over at github (PHP CSV Converter) if you’re interested.

It simply converts an inputted CSV file to a PHP array or a JSON string. For example, you might have a list of countries in a CSV file. You could quickly convert to a JSON string for use with a JavaScript autocomplete plugin, or convert to a PHP array for quickly looping over without having to write functions for reading CSV files yourself.

I’ll admit it has limited uses, but I have found it useful from time to time.

Leave a Reply