2017 © Pedro Peláez
 

library php-redis

image

jelix/php-redis

  • Sunday, April 1, 2018
  • by laurentj
  • Repository
  • 1 Watchers
  • 0 Stars
  • 280 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 21 Forks
  • 0 Open issues
  • 8 Versions
  • 17 % Grown

The README.md

PHP Redis

php-redis contains php classes for connecting with redis database with methods for all available commands in redis., (*1)

It provides pure PHP API, and doesn't rely on some PHP extensions., (*2)

Quick start

  • Install Redis Server from redis.io
  • Download latest php-redis class from here
  • Write some code:
        # Connecting
        $r = new \PhpRedis\Redis('localhost', 6379);

        # Save some value
        $r->some_key = 'hello world';

        # Outputting it
        echo $r->some_key;

        # Call any redis method (including methods added in redis 2.*)
        echo $r->zcard('zkey');

Changelog

  • 1.0: Initial implementation with all functions implemented up to redis 1.0
  • 1.1:
    • The unified request protocol is used (intruduced in redis 1.2).
    • Redis implements the __call magic method. Any non-implemented redis method can be called via ->methodname(param1, ...)
  • 1.2: pipeline support. ->pipeline_begin() and then execute any number of commands - each will return null Then run ->pipeline_responses() to get all of the responses as array and end the pipeline mode
  • 1.2.1: fix quit() error, undefined variable on connection errors, and add closing during destruction of the object
  • 1.3.0:
    • support of Pub/Sub
    • new method flushByPrefix(). Read warning in the method comment.
    • new methods getHost() and getPort()
    • fix cloning support: a clone should not reuse the same socket.
  • 2.0.0:
    • move classes into a namespace to avoid conflicts with classes of the redis extension.

The Versions

01/04 2018

v1.0.0

1.0.0.0

  Sources   Download

01/04 2018

v1.1.0

1.1.0.0

  Sources   Download

01/04 2018

v1.2.0

1.2.0.0

  Sources   Download

11/01 2018

dev-master

9999999-dev

php classes to manage data into a redis database. Fork from Sash php-redis lib.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.6

 

The Development Requires

by Alexander Alexiev

redis

11/01 2018

v2.0.1

2.0.1.0

php classes to manage data into a redis database. Fork from Sash php-redis lib.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.6

 

The Development Requires

by Alexander Alexiev

redis

01/02 2017

v2.0.0

2.0.0.0

php classes to manage data into a redis database. Fork from Sash php-redis lib.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.6

 

The Development Requires

by Alexander Alexiev

redis

02/06 2016

v1.3.0

1.3.0.0

php5 class to manage data into a redis database. Fork from Sash php-redis lib.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3.3

 

The Development Requires

by Alexander Alexiev

redis

01/06 2016

v1.2.1

1.2.1.0

php5 class to manage data into a redis database. Fork from Sash php-redis lib.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3.3

 

The Development Requires

by Alexander Alexiev

redis