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

Commit

Permalink
Merge pull request #47 from bensherred/update-meilisearch-php
Browse files Browse the repository at this point in the history
Update meilisearch-php to v0.14
  • Loading branch information
shokme authored Sep 23, 2020
2 parents c4b44cd + 7cc222e commit f0115b8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,42 @@
$ composer require meilisearch/meilisearch-laravel-scout
```

### HTTP Client

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>
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).

If you use **Laravel 8** you can skip this section as laravel pre-install Guzzle 7 by default.

Guzzle 7:
```bash
$ composer require guzzlehttp/guzzle
```
If you already have guzzle installed with a version < 7, don't forget to update the version inside your composer.json
```json
"require": {
"guzzlehttp/guzzle": "^7.0"
}
```

Guzzle 6:

```bash
$ composer require php-http/guzzle6-adapter
```

Symfony Http Client:

```bash
$ composer require symfony/http-client nyholm/psr7
```

Curl:

```bash
$ composer require php-http/curl-client nyholm/psr7
```

### Export configuration

```bash
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"require": {
"php": "^7.2.5",
"laravel/scout": "^8.0",
"meilisearch/meilisearch-php": "^0.13"
"meilisearch/meilisearch-php": "^0.14",
"http-interop/http-factory-guzzle": "^1.0"
},
"require-dev": {
"orchestra/testbench": "^5.0 || ^6.0",
Expand Down

0 comments on commit f0115b8

Please sign in to comment.