PHP Classes

What is the best PHP csv to json class?: Convert CSV string to JSON

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP csv to json class?  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP csv to json class?

Edit

Picture of tim lambert by tim lambert - 8 years ago (2016-07-20)

Convert CSV string to JSON

This request is clear and relevant.
This request is not clear or is not relevant.

+6

I need to take first line of comma delimited string to form JSON strings.

Ask clarification

1 Recommendation

PHP CSV Parser: Process and parse CSV uploaded files

This package can process and parse CSV uploaded files.

One class can validate and process CSV files by checking its file name extension, MIME type and file size limit, before moving the files to a given directory.

Another class parse the CSV files and extract a given range of rows. The parsed data can be displayed in an HTML table.

CSV-Parser is a parser that reads CSV files and assembles as a result of analyzing a data set to save in a database
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Manuel Lemos by Manuel Lemos Reputation 26695 - 8 years ago (2016-07-23) Comment

If you have the CSV data in files, probably uploaded you can use this class to parse the CSV data. Then just use PHP function json_encode to encode the the parsed CSV.


Recommend package
: 
: