This repository was archived by the owner on May 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments