How to persist and load PHP entities into and from a single XML file with DOM-ORM
DOM-ORM is a lightweight, zero-setup PHP persistence layer that stores attribute-mapped entities in a single plaintext XML file. It requires no database server, SQL client, or binary files, making data easy to open, grep, diff in Git, and is human-readable. DOM-ORM requires PHP 8.3+ (up to 8.5) and is MIT-licensed. It is tailored for small datasets, and the documentation covers all features in detail. Here, I'll focus on a practical walkthrough.
By Erik. Erik Pöhler's Weblog.- Filed under MySQL and MariaDB,
- PHP,
- Tutorials
- & Web Development