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 33ab9f9 commit 03f642eCopy full SHA for 03f642e
README.md
@@ -1,12 +1,30 @@
1
# PHP Curl Client
2
3
-
4
A very simple curl client - less than 100 lines. Perfect for being a base class.
5
+
6
+## Examples
7
8
+```php
9
+use Curl\Client;
10
11
+$client = new Client();
12
+$response = $client->get('https://stackoverflow.com');
13
14
+// 200
15
+$status = $response->status;
16
17
+// HTML content
18
+$body = $response->body;
19
20
+// curl_error() OR null
21
+$error = $response->error;
22
23
+// curl_info() array
24
+$info = $response->info;
25
+```
26
27
## TODO
28
29
- make PSR-7 and PSR-18 compatible
30
-### Links
-- https://github.com/tpyo/amazon-s3-php-class
0 commit comments