This is an example PHP project which uses Redis to store and retreive some data. It was buit for the Ann Arbor PHP MySQL Meetup on 2013-06-22. Even if you're not in the meetup, feel free to follow along ;).
This README.md document will go over downloading and installation instructions. For a copy of the presentation notes, check out the PRESENTATION.md document.
try.redis.io - If you don't want to install Redis but want to experiment
Pick a solution based on your OS.
brew install redis
apt-get install redis-server
This'll get you my sample PHP and Redis application, assuming you've got GIT installed and configured.
mkdir php-and-redis-example && cd php-and-redis-example
git init
git remote add origin [email protected]:tlhunter/php-and-redis-example.git
git pull origin master
git submodule init
git submodule update
php index.php
- redis.io/commands - Official Documentation on Redis Commands
- github.com/nrk/predis - Raw PHP Redis Library
- github.com/tlhunter/whisper - More Complex Project Example
- github.com/tlhunter/php-and-redis-example - This project
- benchmarking-memcached-and-redis-clients - Redis vs. Predis vs. Memcache Benchmark