Skip to content

Commit 5e7d7a6

Browse files
committed
📝 updated readme
1 parent ab0dd15 commit 5e7d7a6

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<br><br>
77
</p>
88

9-
# Leaf Fetch
9+
# Leaf Fetchs
1010

1111
[![Latest Stable Version](https://poser.pugx.org/leafs/fetch/v/stable)](https://packagist.org/packages/leafs/leaf)
1212
[![Total Downloads](https://poser.pugx.org/leafs/fetch/downloads)](https://packagist.org/packages/leafs/leaf)
@@ -36,17 +36,33 @@ $res = Fetch::request([
3636
echo json_encode($res->data);
3737
```
3838

39+
Or with Leaf 3's functional mode:
40+
41+
```php
42+
$res = fetch("https://jsonplaceholder.typicode.com/todos/");
43+
44+
echo json_encode($res->data);
45+
```
46+
3947
## Installation
4048

41-
You can quickly install leaf fetch with composer.
49+
You can quickly install leaf fetch with the Leaf CLI
4250

4351
```sh
44-
composer require leafs/fetch
52+
# latest stable
53+
leaf install fetch
54+
55+
# dev version
56+
leaf install fetch@dev-main
4557
```
4658

47-
If you want to keep up to date with all the changes with leaf fetch you can follow the main branch
59+
Or with composer:
4860

4961
```sh
62+
# latest stable
63+
composer require leafs/fetch
64+
65+
# dev version
5066
composer require leafs/fetch dev-main
5167
```
5268

0 commit comments

Comments
 (0)