doctrine/orm ? reverse-engineered prompt

Reverse engineered prompt

Build me a PHP 8.1 plus object relational mapper that lets me work with normal PHP objects and have them saved and loaded from a database without writing tons of SQL.

I want the library to make it easy to map classes to tables, manage basic persistence, and let me query data with a clean object oriented query language instead of raw SQL when possible. It should feel like a serious reusable package, with solid tests, good error handling, and clear documentation for how to define entities, run queries, and configure it with a database connection.

Please make it match the style of a mature open source library, so the public API is clean and the internals are well organized. If anything important depends on current PHP or database behavior, look up the latest docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab