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.2.2(1y ago)093[6 PRs](https://github.com/vardumper/dom-orm/pulls)PHPPHP ^8.2

Since Jan 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vardumper/dom-orm)[ Packagist](https://packagist.org/packages/vardumper/dom-orm)[ RSS](/packages/vardumper-dom-orm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (12)Versions (13)Used By (0)

DOM ORM
=======

[](#dom-orm)

This is a storage adapter for small web projects. Like any other ORM, it stores enitites (objects) into a flexible XML file. This is for developers who want to start a small project without having to spin up a database.

Features
--------

[](#features)

- A very lightweight approach to persisting data into a single XML file.
- Supports local and external file storage via Flysystem (S3,Azure,Google Cloud,(S)FTP,etc.)
- Supports Many-to-one, One-to-many and Many-to-many relationships.

Full Documentation
------------------

[](#full-documentation)

Read the [Documentation](https://linktodocumentation)

Getting started
---------------

[](#getting-started)

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

By default, the XML file is stored on your local filesystem as `storage/data.xml` under the root of your project. You can change the storage location by changing the Flysystem adapter and configuring dom-orm to use it, like so:

```
// config/dom-orm.php
