We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a22a74d commit fe26d67Copy full SHA for fe26d67
README.md
@@ -5,37 +5,3 @@
5
JsonDB: Lightweight document container.
6
7
___
8
-
9
-### Example
10
-Full example of json db
11
-```php
12
-<?
13
14
-require "vendor/autoload.php";
15
16
-use App\JSONDatabase;
17
18
-$path = 'data/users.json';
19
20
-$db = new JSONDatabase($path);
21
22
-$data = [
23
- 'id' => 1,
24
- 'name' => 'Sushil',
25
- 'age' => 23,
26
- 'dev' => true,
27
- 'lang' => ['php','javascript','sql']
28
-];
29
30
-// post data
31
-$db->write($data);
32
33
-// fetch data
34
-$result = $db->read();
35
36
-echo "<pre>";
37
-print_r($result);
38
-echo "</pre>";
39
40
-```
41
0 commit comments