PHP Package: predis/predis

Predis is a PHP client library for Redis that provides a flexible and efficient way to interact with Redis databases.

Current Version: 3.3.0
Last Updated: 2025-11-24
PHP Requirement: ^7.2 || ^8.0
Dependencies:
phpredis/phpredis
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Predis is a feature-rich PHP library that offers comprehensive support for Redis and its functionalities. It simplifies the process of working with Redis databases by providing powerful abstractions and utilities. With its user-friendly interface and robust capabilities, Predis is the go-to solution for integrating Redis into PHP applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.4.2

Download Download v3.4.2

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/predis/predis/3.4.2/loader.php';
require_once 'libs/phpredis/phpredis/6.3.0/loader.php';

use Predis\Client;
use Predis\Connection\ConnectionException;

$obj = new Client();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.