A simple PHP script to convert JSON data to CSV
Branch: master
Clone or download
danmandle Merge pull request #5 from blackthorn42/master
Recursively flatten nested JSON data to a 2 dimensional CSV.
Latest commit 9dc7412 Aug 14, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Updated readme Feb 2, 2013
json2csv.class.php Download flattened JSON data as CSV file Aug 14, 2014
json2csv.php Download flattened JSON data as CSV file Aug 14, 2014

README.md

JSON2CSV

A simple PHP script to convert JSON data to CSV

Command Line Usage

The script can also take command line arguments!

php json2csv.php --file=/path/to/source/file.json --dest=/path/to/destination/file.csv

OR You can have it dump the CSV file relative to the PHP script php json2csv.php --file=/path/to/source/file.json