Solved

Is there a PHP equivalent to Class::DBI?

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

Suggested Solutions

Title # Comments Views Activity
WordPress  Failed to Import Media 8 60
PHP processing webform 25 42
Considerations PHP using multiple locations 9 31
Php variable to be sent back 3 30
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

738 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