I've installed Elasticsearch 7.2 on CentOS 7. I'd like to try using the Elasticsearch-PHP API, but the only version compatible with Elasticsearch 7.2 doesn't support PHP 5.4, the standard PHP version in CentOS 7.
Now, I fully realize that PHP 5.4 is ancient, but I'd like to stick with it for compatibility reasons and because it's the official version supported by my distro. Is there any method that would allow me to use the Elasticsearch-PHP API with such an old PHP version?
Alternatively, is there another good way I can access Elasticsearch with PHP other than by using the official API? I know that I can use
curl to make HTTP requests, but my impression is that this is more for testing than for real-world use.
Thanks very much for any suggestions!