Skip to content

JsonDB: Lightweight Document Container for Modern PHP Apps.

License

CodeWithSushil/json-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-db

  • JSON DB for APIs Testing for Your Minimalist Project

Installation

git clone https://github.com/codewithsushil/json-db.git cd json-db php -S localhost:8888 curl http://localhost:8888

setup

$db = new jsondb(__dir__);

Post

$db->post("users", [ 'id' => 1, 'name' => 'jhon', 'email' => 'jhon@example.com', 'create_at' => '20:34:05:05:2025' ]);

Get

$db->get("users", true); // all data $db->get("users", $id); // single data

update

$db->update("users",$id, [ 'name' => 'lily' ])

delete

$db->delete("users", $id);

search or like?

$db->search('users','jhon'); 

About

JsonDB: Lightweight Document Container for Modern PHP Apps.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages