Solved

Is there a PHP equivalent to Class::DBI?

Posted on 2010-11-27
2
316 Views
Last Modified: 2012-05-10
I'm switching to PHP from Perl and really like the way Class::DBI works. What's the best way to do ORM w/ a MySQL database in PHP?

Thanks!
Zumpoof
0
Comment
Question by:zumpoof
2 Comments
 
LVL 34

Accepted Solution

by:
Beverley Portlock earned 500 total points
ID: 34224872
There is a project called Doctrine which provides ORM using PDO as the database abstraction layer

http://en.wikipedia.org/wiki/Doctrine_%28PHP%29

http://www.doctrine-project.org/

I've never use it myself, but I've been tempted. If I had no legacy code issues and was starting from scratch then I would look at it more seriously.
0
 
LVL 4

Expert Comment

by:Marck911
ID: 34462713
try PEAR MDB2 wich is a merge of the PEAR DB and Metabase php database abstraction layers. it works for several databases. here is some docs
http://pear.php.net/package/MDB2/docs
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Creating and Managing Databases with phpMyAdmin in cPanel.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question