I know that I should be using Composer. I've not ventured there just yet.
I want to try Meilisearch Search service, and they have a PHP SDK.
According to the docs of the PHP SDK:
To get started, simply require the project using Composer. You will also need to install packages that "provide" psr/http-client-implementation and psr/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
So, This is what I've inserted in my php file:
include './search/guzzle7/src/Client.php';
include './search/guzzle7/src/Promise.php';
include './search/meilisearchPhp/src/MeiliSearch.php';
include './search/meilisearchPhp/src/Client.php';
Given that I get this error:
Fatal error: Uncaught Error: Class 'MeiliSearch\Client' not found
It's pretty clear that I'm adding the files incorrectly. Any advice on this?
The github repos are: Meilisearch Meilisearch PHP SDK Guzzle 7
I have the original Meilisearch project in the same folder as all other projects, the search folder (./search/meilisearch/)
Thanks for your help!