Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4029818
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:23:35+00:00 2026-05-20T11:23:35+00:00

last week I have spend on creating a dynamic DB-to-OOP mapping engine in PHP.

  • 0

last week I have spend on creating a dynamic DB-to-OOP mapping engine in PHP.
It works pretty well. You define your DB, make PHP classes with same names, call one method, it generates the SQL, fetches the result, and creates the appropriate objects from it.

You can apply different query filters, it automatically joins parent tables, translation tables (for multi-language db), value tables (which don’t have classes on PHP side), it has a build-in filter validator (so only valid sql are passed to the db) etc. etc. etc.

It is nothing revolutionary, but with some careful table/class naming it gets the job done pretty well.

Later on, I opened my cPanel and had a look at PEAR modules, and I can see there are many modules that deal with databases. I’m new to PEAR, haven’t used it before.

Can anyone tell me if there is a module that does something similar, like I described above?
Just to make things clear, I’m not looking for a proxy generator, which will generate the code for the classes, but a dynamic mapper, which does everything pretty much on-fly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:23:36+00:00Added an answer on May 20, 2026 at 11:23 am

    http://www.doctrine-project.org/ Is this what you’re looking for? An ORM?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK, I am amittedly new to LINQ and have spent the last week reading
Keystore files I have used in my web application expired last week. I generated
for the last week i have been trying to study WPFi took a two
Last week I started playing around with LAMP Ubuntu and I didnt have any
I have an application that was originally written using iOS 3.1 Last week I
Last week we released Omniture's analytics code onto a large volume of web sites
Last week I implemented a date validation in our front end, a combination of
The last week on the ACM ICPC Mexico competition, I missed a return 0
I was writing some Unit tests last week for a piece of code that
Given a week-day (1-7), how can I calculate what that week-day's last date was?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.