Jump to content
  • Advertisement
Sign in to follow this  
EvilSpaceHamster

[web] Php Orm Libraries

This topic is 2805 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, I'm currently creating an online trading game with an MVC architecture.

Although I'm a professional Web Dev, almost all of my web apps have used raw MySQL connections and queries, for this game I would like that to change. I would like to use a database agnostic ORM library in order to extract an independent framework for mainly my own projects, but also for a bunch of developer friends. My question here is simple; has anyone looking at this topic used any of the well known PHP ORM libraries (preferably with DB abstraction) and with that knowledge make a suggestion. For the inevitable (and valid!) "what have you tried?" question, I have experience of phpActiveRecord and the built in DB stuff in cakePHP and codeIgniter, also the DBAL: ADOdb.

Thanks in advance.

EvilSpaceHamster

Share this post


Link to post
Share on other sites
Advertisement
I've worked with Doctrine in the past and really liked it. It integrates well with other frameworks (I used Zend Framework so this was important) and seems to have all the features I needed without being too bloated. Especially useful is all the command line stuff which made it easy to automate all the database stuff (updating, backing up etc.

They've just released 2.0 stable which runs on PHP5.3+. I've yet to try this since I'm still working with PHP5.2 (which they still support with their version 1.2) but it's supposed to be a lot tidier and easier to use.

Share this post


Link to post
Share on other sites
Doctrine 2 is great, but be aware that it's a completely different beast than Doctrine 1. If you prefer something simpler, have a look at RedBeanPHP.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!