Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 876cc9b

Browse files
committed
added minimum stability to dev
1 parent 10dec12 commit 876cc9b

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ composer require mobtexting/php-http-client
1313
```php
1414
$headers = ['Authorization: Bearer ' . $apiKey];
1515
$client = new Mobtexting\Client('https://api.example.com', $headers);
16+
17+
$data = [
18+
'some' => 1, 'awesome' => 2, 'data' => 3
19+
];
20+
21+
$response = $client->post($data, $queryParams, $requestHeaders);
22+
23+
var_dump(
24+
$response->statusCode(),
25+
$response->headers(),
26+
$response->body()
27+
);
1628
```
1729

1830
## Security

composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
"description": "HTTP REST client, simplified for PHP",
44
"type": "library",
55
"homepage": "http://github.com/sendgrid/php-http-client",
6-
"keywords": ["Mobtexting", "HTTP", "REST", "API"],
6+
"keywords": [
7+
"Mobtexting",
8+
"HTTP",
9+
"REST",
10+
"API"
11+
],
712
"license": "MIT",
813
"authors": [
914
{
@@ -27,5 +32,6 @@
2732
"psr-4": {
2833
"Mobtexting\\Test\\": "test/unit/"
2934
}
30-
}
35+
},
36+
"minimum-stability": "dev"
3137
}

0 commit comments

Comments
 (0)