PHP Classes

MySQL2JSON: Generate JSON representation from MySQL queries

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 553 All time: 5,496 This week: 488Up
Version License PHP version Categories
simple_mysql2json 1.0BSD License3.0Databases
Description 

Author

This class can be used to generate a JSON representation of data returned by MySQL queries.

It can execute given MySQL and traverse the result set to generate a JSON representation of the data in the result rows and columns.

The generated JSON code is returned as a string.

Picture of Ellery Leung
Name: Ellery Leung <contact>
Classes: 6 packages by
Country: Hong Kong Hong Kong

  Files folder image Files (2)  
File Role Description
Plain text file MYSQL2JSON.class.php Class Class source
Accessible without login Plain text file mysql2json_example.php Example Class usage

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:553
This week:0
All time:5,496
This week:488Up