Install libphp-predis by entering the following commands in the terminal:
sudo apt update sudo apt install libphp-predis
Flexible and feature-complete PHP client library for the Redis key-value store
The library does not require any additional extension loaded in PHP but it can be optionally paired with the phpiredis (https://github.com/nrk/phpiredis) C-based extension to lower the overhead of serializing and parsing the Redis protocol. Predis is also available in an asynchronous fashion through the experimental client provided by the Predis\Async (http://github.com/nrk/predis-async) library. . For a list of frequently asked questions about Predis see our FAQ (https://github.com/nrk/predis/blob/master/FAQ.md). More details are available on the official wiki (http://wiki.github.com/nrk/predis) of the project.