PHPackages                             vardumper/dom-orm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. vardumper/dom-orm

ActiveLibrary[Database &amp; ORM](/categories/database)

vardumper/dom-orm
=================

DOMDocument Object Relational Mapper (ORM)

v1.4.4(1mo ago)1140[2 PRs](https://github.com/vardumper/dom-orm/pulls)1MITPHPPHP &gt;=8.3 &lt;8.6CI passing

Since Jan 9Pushed 1w ago1 watchersCompare

[ Source](https://github.com/vardumper/dom-orm)[ Packagist](https://packagist.org/packages/vardumper/dom-orm)[ Fund](https://www.buymeacoffee.com/vardumper)[ Fund](https://www.patreon.com/vardumper)[ RSS](/packages/vardumper-dom-orm/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (29)Versions (26)Used By (1)

DOM ORM
=======

[](#dom-orm)

 [ ![Latest Stable Version](https://camo.githubusercontent.com/f5def0709d9b0ddd46ac7aa95e9546b503196eaf67569fe8bdc5da2a677f9a86/68747470733a2f2f706f7365722e707567782e6f72672f76617264756d7065722f646f6d2d6f726d2f762f737461626c65) ](https://packagist.org/packages/vardumper/dom-orm) [![Total Downloads](https://camo.githubusercontent.com/e009d2843393435190d77fe9e5a72bd53f4ad1d1ea03da21597a45311fd1ba63/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76617264756d7065722f646f6d2d6f726d)](https://camo.githubusercontent.com/e009d2843393435190d77fe9e5a72bd53f4ad1d1ea03da21597a45311fd1ba63/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76617264756d7065722f646f6d2d6f726d) [![License](https://camo.githubusercontent.com/90e1426799a40ac79f73b9f2de33f8939117f257ab8d18cc638a1ec40fb4e0fe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d6d69742d726564)](https://camo.githubusercontent.com/90e1426799a40ac79f73b9f2de33f8939117f257ab8d18cc638a1ec40fb4e0fe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d6d69742d726564) [![](https://camo.githubusercontent.com/0395833017ab75581633c6828b2a15a3e2b8146edfd2fc916b8c4dab59859441/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e697425323074657374732d70617373696e672d677265656e3f7374796c653d666c617426636f6c6f723d253233346331)](https://camo.githubusercontent.com/0395833017ab75581633c6828b2a15a3e2b8146edfd2fc916b8c4dab59859441/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e697425323074657374732d70617373696e672d677265656e3f7374796c653d666c617426636f6c6f723d253233346331) [![](https://raw.githubusercontent.com/vardumper/dom-orm/refs/heads/main/coverage.svg)](https://raw.githubusercontent.com/vardumper/dom-orm/refs/heads/main/coverage.svg) [![](https://camo.githubusercontent.com/fc02dc09618c85c8c62541b321227f0c39e19401e4cabe763dc742b9f0fa88d0/68747470733a2f2f64747261636b2e6572696b706f65686c65722e75732f6170692f76312f62616467652f76756c6e732f70726f6a6563742f34653032386466392d306265332d346333642d623338332d3762313436383236326332373f6170694b65793d6f64745f6e473833575f454163515a6b6b3662354b716b6e49566f4b386e664e6a537a33384f6d706e6e)](https://camo.githubusercontent.com/fc02dc09618c85c8c62541b321227f0c39e19401e4cabe763dc742b9f0fa88d0/68747470733a2f2f64747261636b2e6572696b706f65686c65722e75732f6170692f76312f62616467652f76756c6e732f70726f6a6563742f34653032386466392d306265332d346333642d623338332d3762313436383236326332373f6170694b65793d6f64745f6e473833575f454163515a6b6b3662354b716b6e49566f4b386e664e6a537a33384f6d706e6e)

DOM ORM is a lightweight, zero-setup, XML-based persistence layer for small datasets in PHP projects. It stores entities in a single XML document, so you can start without a database server.

Features
--------

[](#features)

- A very lightweight approach to persisting data into a single XML file.
- Supports exporting to headless-friendly formats such as JSON, YAML, XML
- Supports Versioning in Git or Mercurial out of the box.
- Handles concurrency with flock() when used with local file strage
- Supports local and remote storage via Flysystem (S3, Azure, Google Cloud, (S)FTP, etc.).
- Ships with a built-in in-memory Flysystem adapter for process-local XML storage.
- Supports one-to-one, one-to-many, many-to-one, and many-to-many patterns.
- Supports AES-256-GCM field-level encryption via `#[Sensitive]` with searchable HMAC hashes.
- Supports schema evolution (rename/remove fragments) via `#[FragmentMap]` and CLI commands.
- Fully tested (Unit, Integration)

Installation
------------

[](#installation)

```
composer require vardumper/dom-orm
```

Documenation
------------

[](#documenation)

Extensive Documentation has been made [available here](https://vardumper.github.io/dom-orm/).

Demos
-----

[](#demos)

- [Virtual Filesystem](https://dom-orm.erikpoehler.com/virtual-filesystem/)
- [Blog](https://dom-orm.erikpoehler.com/blog/)

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance94

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 51.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~65 days

Recently: every ~3 days

Total

14

Last Release

56d ago

PHP version history (3 changes)v1.0PHP ^8.0

v1.1PHP ^8.2

v1.3.0PHP &gt;=8.3 &lt;8.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21208397?v=4)[Erik Pöhler](/maintainers/vardumper)[@vardumper](https://github.com/vardumper)

---

Top Contributors

[![vardumper](https://avatars.githubusercontent.com/u/21208397?v=4)](https://github.com/vardumper "vardumper (177 commits)")[![iroybotlinio](https://avatars.githubusercontent.com/u/14099768?v=4)](https://github.com/iroybotlinio "iroybotlinio (127 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (32 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 commits)")

---

Tags

databasedomdomdocumentflatfilenosqlormphpxml

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vardumper-dom-orm/health.svg)

```
[![Health](https://phpackages.com/badges/vardumper-dom-orm/health.svg)](https://phpackages.com/packages/vardumper-dom-orm)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
