Download the PHP package phpdot/redis without Composer

On this page you can find all versions of the php package phpdot/redis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package redis

phpdot/redis

A coroutine-safe Redis client wrapping ext-redis (phpredis). It adds automatic reconnection with exponential backoff, translates driver errors into typed exceptions, and ships a connector so phpdot/pool can hold and recycle connections. One \Redis client lives per connection, so a pool gives each Swoole coroutine its own.

Table of Contents

Requirements

Requirement Constraint
PHP >= 8.5
ext-redis ^6.0
phpdot/contracts ^0.5

phpdot/container is a dev-only suggestion — the #[Config('redis')] attribute on RedisConfig is inert until a phpdot application reflects it.

Installation

Usage

Connecting

RedisConfig is an immutable value object carrying every ext-redis connection option — host/port or a Unix socket path, username/password (ACL or legacy AUTH), database, TLS with stream SSL options, timeouts, and maxRetries for the backoff.

Resilience

connect() retries with exponential backoff (100ms, 200ms, 400ms, …) up to maxRetries before throwing a ConnectionException. Authentication failures throw an AuthenticationException immediately — retrying bad credentials never helps. Both extend the package's RedisException base.

Pooling

RedisConnector adapts a RedisConnection to phpdot/pool's ConnectorInterface, so a pool can build, health-check, and recycle connections:

Architecture

RedisConnection owns one ext-redis \Redis client and drives its lifecycle — connecting with backoff, pinging for liveness, and translating RedisExceptions into the package's typed hierarchy. RedisConnector is the thin bridge to phpdot/pool, so the connection type stays pool-agnostic.

Testing

The unit suite covers the disconnected-state contract with no server. The integration suite connects to a live Redis at 127.0.0.1:6379 and skips automatically when none is reachable.

License

MIT.

This repository is a read-only mirror, generated by CI from phpdot/monorepo. Pull requests and issues belong in the monorepo.


All versions of redis with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-redis Version ^6.0
phpdot/contracts Version ^0.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phpdot/redis contains the following files

Loading the files please wait ...