Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP-friendly NoSQL solutions [closed]

Tags:

php

nosql

pecl

I'm looking to use a NoSQL solution for my next project, which will be written in PHP. What choices do I have in terms of NoSQL solutions that can easily interfaced via PHP? I haven't done much thinking about the architecture yet, so I'm not sure what my needs will be; I'd simply like to know what my choices are so I don't build something I can't reasonably implement.

For instance, I know Cassandra has Pandra, but that's just a PHP library. MongoDB has a native PECL extension.

like image 706
mattbasta Avatar asked May 12 '10 19:05

mattbasta


People also ask

Does PHP support NoSQL databases?

SleekDB - A NoSQL Database made using PHP SleekDB is a simple flat file NoSQL like database implemented in PHP without any third-party dependencies that store data in plain JSON files. It is not comparable with databases like Sqlite, MySQL, PostgreSQL and MariaDB because they are relational databases!

Does Netflix use NoSQL?

With billions of reads and writes daily, Netflix relies on NoSQL database Cassandra to replace a legacy Oracle deployment. Netflix is the big Kahuna of a Web media businesses, with 33 million subscribers in more than 40 countries.

Where NoSQL should not be used?

If you are required to perform complex and dynamic querying and reporting, then you should avoid using NoSQL as it has a limited query functionality. For such requirements, you should prefer SQL only. NoSQL also lacks in the ability to perform dynamic operations. It can't guarantee ACID properties.

Will NoSQL databases be around for the next 3 5 years?

NoSQL Databases in next 3–5 Years With many big companies like Amazon and Oracle providing NoSQL services the NoSQL database industry is about to grow in the coming years.


1 Answers

I wrote the PHP driver for MongoDB and I think it's a great interface :)

The mongo PECL package is not only pretty mature (comparatively... nearly a year and a half old now!) and fairly thoroughly documented, it is really widely used. If you check out MongoDB's PHP page, you can see that there are ways of integrating it with Cake, Doctrine, Drupal, Kohana, Symfony, and Zend, as well as a couple admin GUIs (like PHPMoAdmin) and several of it's own ODMs (object document mappers).

P.S. salathe has a good point, though, the best solution is really going to depend on what you're doing.

like image 142
kristina Avatar answered Sep 24 '22 00:09

kristina