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 e84977e commit 3e14792Copy full SHA for 3e14792
composer.json
@@ -24,7 +24,10 @@
24
"autoload": {
25
"psr-4": {
26
"Leaf\\": "src"
27
- }
+ },
28
+ "files": [
29
+ "src/functions.php"
30
+ ]
31
},
32
"minimum-stability": "stable",
33
"require": {
src/functions.php
@@ -0,0 +1,15 @@
1
+<?php
2
+
3
+use function Leaf\fetch as LeafFetch;
4
5
+if (!function_exists('fetch')) {
6
+ /**
7
+ * Shortcut method for making network requests.
8
+ *
9
+ * @param array|string $options The url or request to hit.
10
+ */
11
+ function fetch($options, $params = [])
12
+ {
13
+ return LeafFetch($options, $params);
14
+ }
15
+}
0 commit comments