Skip to content
This repository was archived by the owner on May 13, 2021. It is now read-only.

Commit f0115b8

Browse files
authored
Merge pull request #47 from bensherred/update-meilisearch-php
Update meilisearch-php to v0.14
2 parents c4b44cd + 7cc222e commit f0115b8

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,42 @@
4242
$ composer require meilisearch/meilisearch-laravel-scout
4343
```
4444

45+
### HTTP Client
46+
47+
You could use any [PSR-18](https://www.php-fig.org/psr/psr-18/) compatible client to use with this SDK. No additional configurations are required.<br>
48+
A list of compatible HTTP clients and client adapters can be found at [php-http.org](http://docs.php-http.org/en/latest/clients.html).
49+
50+
If you use **Laravel 8** you can skip this section as laravel pre-install Guzzle 7 by default.
51+
52+
Guzzle 7:
53+
```bash
54+
$ composer require guzzlehttp/guzzle
55+
```
56+
If you already have guzzle installed with a version < 7, don't forget to update the version inside your composer.json
57+
```json
58+
"require": {
59+
"guzzlehttp/guzzle": "^7.0"
60+
}
61+
```
62+
63+
Guzzle 6:
64+
65+
```bash
66+
$ composer require php-http/guzzle6-adapter
67+
```
68+
69+
Symfony Http Client:
70+
71+
```bash
72+
$ composer require symfony/http-client nyholm/psr7
73+
```
74+
75+
Curl:
76+
77+
```bash
78+
$ composer require php-http/curl-client nyholm/psr7
79+
```
80+
4581
### Export configuration
4682

4783
```bash

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"require": {
2525
"php": "^7.2.5",
2626
"laravel/scout": "^8.0",
27-
"meilisearch/meilisearch-php": "^0.13"
27+
"meilisearch/meilisearch-php": "^0.14",
28+
"http-interop/http-factory-guzzle": "^1.0"
2829
},
2930
"require-dev": {
3031
"orchestra/testbench": "^5.0 || ^6.0",

0 commit comments

Comments
 (0)