Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Code database interaction or use RedBeanPHP

I am working on a site that has complex database usage. I am beginning to understand OOP and more detailed database usage. Should I put my time and effort into learning PDO to access the database or should I use RedBeanPHP? Both require a learning curve but it seems that RedBeanPHP would save a ton of coding time for future projects.

1 Answer

Ted,

I think PDO can provide more power and can help you understanding how to work with a database more so than using an ORM solution. PDO is pretty ubiquitous and would be helpful to know if you plan on working on other PHP projects. If you decide to use an ORM solution then I would recommend using Propel or Doctrine which are the more popular and used libraries available.