Download the PHP package vardumper/dom-orm without Composer

On this page you can find all versions of the php package vardumper/dom-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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

Full Documentation

Read the Documentation

Getting started

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:

Basic Usage

Entity

By adding PHP8 Attributes to your entity class, DOM ORM knows how to persist it.

Persistance

An EntityManagerTrait can be used in controllers or services to persist entities to the XML file.

When you want to update an existing Entity, you can use the persist method as well.

When you want to remove an existing Entity, you can use the remove method.

Serialization

When persisting the entity, DOM ORM automatically generates a UID and adds a creation date for the entity. The built-in normalizer and encoder transforms the object into a standardized XML format and saves it.

Querying data

Just like persisting a PHP Object to a XML format, querying data is just as easy. When you query data, internally XPath is used to find the elements, the resulting DOMNodeList is then mapped back to its Entity class object(s).

Querying data with an Entity Repository

By using the EntityRepository class, you can query data in an object-oriented way, always retrieving instances of Entity object(s).

Querying data using DOMXPath

Querying data using DOMDocument

Templating

Twig

Probably the easiest way is to query for entities and pass them to your Twig templates:

Or you could just decoded some DOMElements and pass an array to Twig templates (without instantiating the object):

XSLT

You can use the XML data to transform it into HTML using XSLT.

Roadmap


All versions of dom-orm with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-dom Version *
ext-json Version *
ext-libxml Version *
ext-mbstring Version *
ext-xml Version *
ramsey/uuid Version ^4.7.6
ramsey/collection Version ^2.0
symfony/serializer Version ^6.4.8 || ^7.1.1
league/flysystem Version ^3.28
symfony/yaml Version ^6.4.8 || ^7.0.0
mnapoli/silly Version ^1.9.0
league/config Version ^1.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vardumper/dom-orm contains the following files

Loading the files please wait ....