php-crud-api icon indicating copy to clipboard operation
php-crud-api copied to clipboard

JSON File as Data source driver

Open jasondavis opened this issue 8 years ago • 1 comments

Would it be hard, or basically possible with the current structure of the library to make it work with JSON files instead of a Database.

So it would be able to:

  • Open JSON file and read content
  • Create New JSON file
  • Update JSON data in existing JSON file
  • Delete JSON data in a JSON file
  • Delete JSON file

It could be a Fork of this project or implemented as a Driver where there is a MySQL DB Driver and JSON File Driver

I love this library but I am in need of using JSON files with no DB for a certain project.

Any thoughts on how this might would be possibble with PHP-CRUD-API library or not worth the effort?

jasondavis avatar May 13 '17 18:05 jasondavis

I love this library but I am in need of using JSON files with no DB for a certain project.

What is it that JSON files have that SQLite does not have? What requirements are you missing?

mevdschee avatar May 16 '17 15:05 mevdschee