Solved

Is there a PHP equivalent to Class::DBI?

Posted on 2010-11-27
2
312 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now