Solved

Is there a PHP equivalent to Class::DBI?

Posted on 2010-11-27
2
319 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Creating and Managing Databases with phpMyAdmin in cPanel.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
The viewer will learn how to count occurrences of each item in an array.
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.

696 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