PHPackages                             sandeepshetty/redis\_protocol - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. sandeepshetty/redis\_protocol

ActiveLibrary[HTTP &amp; Networking](/categories/http)

sandeepshetty/redis\_protocol
=============================

Simple PHP client library for the Redis protocol (http://redis.io/topics/protocol)

5184PHP

Since Aug 7Pushed 13y ago1 watchersCompare

[ Source](https://github.com/sandeepshetty/redis_protocol)[ Packagist](https://packagist.org/packages/sandeepshetty/redis_protocol)[ RSS](/packages/sandeepshetty-redis-protocol/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

redis\_protocol
===============

[](#redis_protocol)

Simple PHP client library for the [Redis protocol](http://redis.io/topics/protocol).

Requirements
------------

[](#requirements)

- PHP 5.3+

Getting Started
---------------

[](#getting-started)

### Download via [Composer](http://getcomposer.org/)

[](#download-via-composer)

Create a `composer.json` file if you don't already have one in your projects root directory and require redis\_protocol:

```
{
	"require": {
		"sandeepshetty/redis_protocol": "dev-master"
	}
}

```

Install Composer:

```
$ curl -s http://getcomposer.org/installer | php

```

Run the install command:

```
$ php composer.phar install

```

This will download redis\_protocol into the `vendor/sandeepshetty/redis_protocol` directory.

To learn more about Composer visit

### Description

[](#description)

callable **redis\_protocol\\client**( \[string *$host = '127.0.0.1'* \[, int *$port = 6379*\]\] )

The returned function accepts a Redis command as a string.

### Usage

[](#usage)

```
