We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7580327 commit e33ab65Copy full SHA for e33ab65
README.md
@@ -8,3 +8,43 @@ git clone https://github.com/codewithsushil/json-db.git
8
cd json-db
9
php -S localhost:8888
10
curl http://localhost:8888
11
+```
12
+
13
+## setup
14
+```php
15
+$db = new jsondb(__dir__);
16
17
18
19
+## Post
20
21
+$db->post("users", [
22
+ 'id' => 1,
23
+ 'name' => 'jhon',
24
+ 'email' => '[email protected]',
25
+ 'create_at' => '20:34:05:05:2025'
26
+]);
27
28
29
+## Get
30
31
+$db->get("users", true); // all data
32
+$db->get("users", $id); // single data
33
34
35
+## update
36
37
+$db->update("users",$id, [
38
+ 'name' => 'lily'
39
+])
40
41
42
+## delete
43
44
+$db->delete("users", $id);
45
46
47
+## search or like?
48
49
+$db->search('users','jhon');
50
0 commit comments