NoSQL Benchmarks NoSQL use cases NoSQL Videos NoSQL Hybrid Solutions NoSQL Presentations Big Data Hadoop MapReduce Pig Hive Flume Oozie Sqoop HDFS ZooKeeper Cascading Cascalog BigTable Cassandra HBase Hypertable Couchbase CouchDB MongoDB OrientDB RavenDB Jackrabbit Terrastore Amazon DynamoDB Redis Riak Project Voldemort Tokyo Cabinet Kyoto Cabinet memcached Amazon SimpleDB Datomic MemcacheDB M/DB GT.M Amazon Dynamo Dynomite Mnesia Yahoo! PNUTS/Sherpa Neo4j InfoGrid Sones GraphDB InfiniteGraph AllegroGraph MarkLogic Clustrix CouchDB Case Studies MongoDB Case Studies NoSQL at Adobe NoSQL at Facebook NoSQL at Twitter



PHP: All content tagged as PHP in NoSQL databases and polyglot persistence

Tutorial: MongoDB for PHP programmers

A not quite safe for work, but detailed tutorial to MongoDB with PHP.


Redis and PHP

If we already had Redis and Python and Redis and Ruby, the scene would not be complete without Redis and PHP.

Kevin van Zonneveld’s (@kvz) article is following closely the pattern of the other two great Redis tutorials and walks the reader through all the steps involved to get started with Redis and PHP Rediska library.

I guess the one we are missing right now would be Redis and Perl. Anyone?


PHP Script for HBase Schema Backup and Restore

The script is not complete or robust by any means - but it works!

What else can be added?


CouchDB basics for PHP developers

Another guide to CouchDB with PHP

However, every once in a while, you work on a project where you probably think to yourself, “Why am I doing all this work?” The project you’re working on contains very simple bits of data or data that’s difficult to predict — you might get different data fields on different days or even from transaction to transaction. If you were to create a schema to predict what’s coming down the pike at you, you’d end up with tables that have lots of empty fields or lots of mapping tables.

Make sure you also check the quick guide to CouchDB and PHP


Quick Guide to Zend and MongoDB on MongoHq

We already covered that Zend framework is trying to make NoSQL adoption easier looking to integrating with CouchDB and MongoDB.

The linked article is a quick guide to using Zend with MongoDB hosted on MongoHq (note: anyway hosting on MongoHq is optional)

As the name slightly foreshadows MongoHq is a currently bit pricey cloud-based hosting solution for MongoDb databases provided by CommonThread. Since they went live a few weeks ago I signed up for the small plan and started to successfully re-thinker with it in an exploratory Zend Framework based application.


Quick Guide to CouchDB and PHP

CouchDB is one of the most friendly NoSQL systems in terms of protocols: JSON over HTTP. But that doesn’t mean that small libraries aware of the URI space and other aspects of CouchDB are not useful. (nb: the only problem would be if everyone starts creating his own though. Anyway, discussing about CouchDB libs is not the main intent of this post, but rather a personal note I’ve made while going through a couple of PHP guides to CouchDB). As a plus to its ease of use, CouchDB can completely change the architecture of your next web application

So, if you’re planning to get started with CouchDB and PHP, you’d probably like to see an overview of CouchDB. You could either follow the from beginner to CouchDB expert in 2 hours videos or watch Will Leinweber’s Relaxing with CouchDB or just go through David Coallier’s introduction to CouchdB slides embedded below:

Next, you’ll have to install CouchDB on your OS and read one of the PHP getting started posts listed below:

  • Gonzalo Ayuso’s PHP and CouchDB ☞ part 1 and ☞ part 2 will walk you through basic CRUD operation with CouchDB and PHP
  • Matt Apperson ☞ post will help you get started with CouchDB and PHPillow, a simple PHP helper class.
  • Thomas Myer article will introduce you to CouchDB and PHP-on-Couch.

For those familiar with the Zend framework there’s also a Zend and CouchDB integration proposal that you might want to try. And there are probably more CouchDB quick guides around that you might find useful, in which case you’d probably also like to share with others. Meanwhile, have fun with PHP and CouchDB.

Zend and NoSQL Adoption

I have argued previously that even if it is clear that NoSQL is here to stay, integration with popular frameworks is a critical phase in NoSQL adoption.

A while back I have reported about the advances made by one of the most popular Python frameworks, Django for becoming more NoSQL friendly (nb the initiative is more generic and aims at allowing multi-database usage from Django).

It looks like Zend, a very popular PHP framework, is looking to seamlessly integrate with some NoSQL solutions: CouchDB[1] and MongoDB[2]. These proposals (nb I don’t know the status of these proposals) are an interesting read as they offering extremely detailed information about how the integration will be implemented and I’d say they are a good example of a process to be followed by other frameworks looking to open their doors to NoSQL solutions.

Voice Applications with Tropo, CouchDB and PHP

This post and the next several that follow it will detail how to set up a CouchDB instance and to build a cloud telephony application with it using the Voxeo Tropo platform.

So far they published 3 articles: ☞ part 1 — covering CouchDB installation —, ☞ part 2 — CouchDB configuration and the first PHP code interacting with both Tropo and CouchDB amd ☞ part 3 — covering CouchDB data modeling and data fetching.

Even if you don’t plan to build a telephony app, I’d still say it is a bit more practical than this other CouchDB usecase.

NoSQL Twitter Applications

Everyone is building these days a Twitter-like or Twitter-related project using some NoSQL solution. I guess they can use as a ‘scientific’ explanation for these experiments Nati Shalom’s (Gigaspaces) great ☞ post on the common principles behind NoSQL alternatives (the post was inspired by his talk at QCon on building a scalable Twitter application. The presentation is embedded below).


Even if the project code is not available and I couldn’t get the mentioned online version to work, I’d say that the combination of Redis and HTML5 WebSockets is making it worth mentioning. And it case you cannot get it to work either, there is a screencast for it:


TStore is a twitter search result backup tool build in Python and CouchDB. The source code is available on ☞ GitHub.


Retwis is a non-distributed Twitter clone built in PHP and using Redis. The source code and extended details about the implementation are available ☞ here.

According to this page, there is already a port of this solution to Ruby and Sinatra: ☞ Retwis-RB.

Update: Thanks to @koevert, now the list includes also a java port of Retwis: ☞ twayis


Floxee is a commercial tweetstream search and tagging platform built using MongoDB. You can read a bit more about MongoDB usage ☞ here

I am pretty sure I haven’t found all Twitter-like/Twitter-related NoSQL apps out there, so please feel free to send me more. I’ll be happy to update the post.

And in case you are not interested in NoSQL Twitter applications, then you can check the MongoDB-based forum/message-boards apps.

Nati Shalom: Designing a Scalable Twitter - Patterns for Designing Scalable Real-Time Web Applications

Release: MongoDB PHP Driver 1.0.2

Judging by the number of retweets, MongoDB is big with PHP.


Update: @igstan pointed out that MongoDB docs are already part of the official PHP documentation more NoSQL APIs are part of the official PHP docs.. Cool!