Skip to content

Commit fe26d67

Browse files
Update README.md
1 parent a22a74d commit fe26d67

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

README.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,3 @@
55
JsonDB: Lightweight document container.
66

77
___
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

Comments
 (0)