You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library has a hard dependency on Guzzle 7. My application only uses Symfony's HttpClient (which rocks). Instead of requesting that you use my favorite client, the most flexible way is to allow any psr7 client. For example, here's the meilisearch library documentation.
I think this is the best approach, although I forget how psr-18 fits in. Anyway, when Symfony's HTTP client is used in a symfony project, the requests are automatically logged to the debug toolbar, which I love.
I'm toying with creating a Symfony bundle that wraps around this library (which standardizes the API key in an environment variable and makes it easier to inject the class with the key already set).
The text was updated successfully, but these errors were encountered:
Alas, I did it once, using the http-discovery, and now I can't find where! I'll keep an eye out, though, it's a trend to move away from Guzzle as a hard requirement
The library has a hard dependency on Guzzle 7. My application only uses Symfony's HttpClient (which rocks). Instead of requesting that you use my favorite client, the most flexible way is to allow any psr7 client. For example, here's the meilisearch library documentation.
🔧 Installation
You will need to install packages that "provide"
psr/http-client-implementation
andpsr/http-factory-implementation
.A list with compatible HTTP clients and client adapters can be found at php-http.org.
If you don't know which HTTP client to use, we recommend using Guzzle 7:
Here is an example of installation with the
symfony/http-client
:💡 More HTTP client installations compatible with this package can be found in this section.
From https://github.com/meilisearch/meilisearch-php?tab=readme-ov-file#-installation
I think this is the best approach, although I forget how psr-18 fits in. Anyway, when Symfony's HTTP client is used in a symfony project, the requests are automatically logged to the debug toolbar, which I love.
I'm toying with creating a Symfony bundle that wraps around this library (which standardizes the API key in an environment variable and makes it easier to inject the class with the key already set).
The text was updated successfully, but these errors were encountered: