Skip to content

json_query allows you to query JSON flat files with PHP in a limited but SQL ORM like way.

Notifications You must be signed in to change notification settings

danpaul/json_query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

json_query allows you to query JSON flat files in a limited but SQL ORM like way. json_query treats directories of JSON files like databases and individual files in the directory as tables. Everything is lazy loaded, so no files get read into memory until they are actually queried. Additionally, queries may be cached to file. Each JSON file should contain an array of JSON objects. The first object defines the "schema". All keys of the first object are treated as that table's row names.

See example/index.php for slightly more detailed explanation and example usage.

See json_query.php for more detailed class documenation.

About

json_query allows you to query JSON flat files with PHP in a limited but SQL ORM like way.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages