Skip to content

Commit c523a6f

Browse files
authored
Update README.md
1 parent 12960d6 commit c523a6f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
11
# Json
22
A PHP Library for Modify JSON
3+
4+
[View on Packagist](https://packagist.org/packages/dinodev/json)
5+
6+
## How to Use
7+
Namespace: `DinoDev\Json\Classes`
8+
9+
Use: `DinoDev\Json\Classes\Json`
10+
11+
### Get JSON File
12+
```php
13+
$Json = new Json();
14+
$Json->getJson(__DIR__ . "/File.json"); //It will Return A Array of Json, or Error.
15+
```
16+
17+
### Write JSON File
18+
```php
19+
$Json = new Json();
20+
$Json->writeJson(__DIR__ . "/File.json", ["New JSON File" => "It's Working"]); //Will Subscribe File.Json to the Array
21+
```

0 commit comments

Comments
 (0)