8

I was wondering if its possible to use a json-based schema-free, document-based database like Mongodb or Couchdb on a symfony project like its used for ruby-on-rails websites? And if yes, how can it be done?

Parag
  • 963
  • 2
  • 10
  • 27

6 Answers6

7

There is a DoctrineMongoDBBundle for use with Symfony 2

avalanche123
  • 130
  • 1
  • 5
6

You might get some help from the MongoDB PHP Language Center. There are links to several PHP libraries for MongoDB, including a centralized logger for symfony applications.

mdirolf
  • 7,521
  • 2
  • 23
  • 15
4

You can also check out http://li3.me/, the only full-stack PHP framework with fully-integrated support for MongoDB (and CouchDB).

botero
  • 598
  • 2
  • 11
  • 23
Nate Abele
  • 5,771
  • 32
  • 27
0

AFAIK, the only framework to have integrated Mongo support as of yet is Vork.

I saw a post from someone who retrofitted Cake to use MongoDB, but they basically had to rewire the whole model-engine.

Sagdal
  • 11
0

Try building your project with the no-orm flag. There is little need to have an object relational database if you are not using a relational database. Just build classes for your data in PHP. These will function as your schema, which makes sense sense as a schema is not defined at the data layer.

David
  • 1
0

All the majore modern framework can work with Mongodb. Symfony do it very well with doctrine as an exemple

Jaycreation
  • 2,029
  • 1
  • 15
  • 30