File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed
Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 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([
3636echo 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
5066composer require leafs/fetch dev-main
5167```
5268
You can’t perform that action at this time.
0 commit comments