PHPackages                             anzui/metamodels\_openimmo - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. anzui/metamodels\_openimmo

ActiveContao-module[Utility &amp; Helpers](/categories/utility)

anzui/metamodels\_openimmo
==========================

Import OpenImmo-Data into an existing MetaModel (for Contao CMS)

v1.1.0(9y ago)9495[3 issues](https://github.com/der-On/Contao-MetaModels-OpenImmo/issues)[1 PRs](https://github.com/der-On/Contao-MetaModels-OpenImmo/pulls)LGPL-3.0+PHPPHP &gt;=5.3

Since Aug 18Pushed 9y ago4 watchersCompare

[ Source](https://github.com/der-On/Contao-MetaModels-OpenImmo)[ Packagist](https://packagist.org/packages/anzui/metamodels_openimmo)[ Docs](https://github.com/der-On/Contao-MetaModels-OpenImmo/)[ RSS](/packages/anzui-metamodels-openimmo/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

MetaModels - OpenImmo
=====================

[](#metamodels---openimmo)

[!\[Gitter\](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/der-On/Contao-MetaModels-OpenImmo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

This module makes it possible to import OpenImmo-Data into an existing MetaModel.

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

[](#installation)

The contents of the `contao` folder needs to be placed within the folder `system/modules/metamodels_openimmo/`, while the the `src` folder needs to go to `composer/anzui/metamodels_openimmo/src`.

Import the Template
-------------------

[](#import-the-template)

You can save a lot of time and work by importing the pre-made template.

It consists of the MetaModel "immo" and pre-configured attributes and the corresponding MetaModel-OpenImmo link.

1. In the Backend under "MetaModels - OpenImmo &gt; Settings" select the MetaModels-Version you have installed.
2. Hit "Import Template" and you will get a good starting point for your object catalog.

**Warning:** Importing the template will erase all of your existing MetaModels and MetaModels-OpenImmo links.

Usage
-----

[](#usage)

1. Create your metamodel
2. In the Backend under "MetaModels - OpenImmo &gt; Links" add a new MetaModel-OpenImmo link
3. Select the folder in which the object-data will be uploaded to by your Software
4. Select the folder in which file attachments for object should be stored
5. Link each field in your metamodel to an OpenImmo field.
6. Setup the upload of your object data in your Software to upload the files in the directory you selected in step 3

Synchronising
-------------

[](#synchronising)

1. Trigger uploading of the data in your software
2. In the Backend unter "MetaModels - OpenImmo &gt; Links" click on the "sync" icon
3. Select the data-file to sync, by default the oldest unsynced file will be selected
4. hit the "Sync" button, if it is a zip file it gets unpacked and you must hit the "Sync" button again
5. The data is now synced with your database

Automation
----------

[](#automation)

For each MetaModels-OpenImmo Link you can configure automatic syncing and deletion of old files.

This automation uses Contao's cron service. By default it requires the page to be called by any web browser regulary to work.

You can also setup Contao's cron service to be executed by your systems cron.

Field Callbacks
---------------

[](#field-callbacks)

You can add a callback function to each field-link.

It will be passed the value from the XML, the field object, the immo-array, the xml tree, the current xpath and the metamodel attribute.

It must return the value to be set on the field.

```
public static function fieldCallback($value, $field_obj, &$immo, &$xml, $xpath, $metamodelAttribute)
{
    ...

    return $value;
}

```

Hooks
-----

[](#hooks)

MetaModels - OpenImmo provides a hook that is called for each item that will be synced with the database

```
$GLOBALS['TL_HOOKS']['metaModelsOpenImmoSync'][] = array('MyClass', 'myMethod')

```

It gets passed an array containing all synced fields and the original XML tree for that particular object within the `_xml_` key of the array.

It must return the array. Every modification you made to it will be stored in the database.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.1% 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

Unknown

Total

1

Last Release

3603d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd2f605c2e4ab47101a7b8e2519bb9ff6557901868c44a0d2a0ec7ab9782d3f9?d=identicon)[der\_On](/maintainers/der_On)

---

Top Contributors

[![der-On](https://avatars.githubusercontent.com/u/359399?v=4)](https://github.com/der-On "der-On (112 commits)")[![zonky2](https://avatars.githubusercontent.com/u/1045318?v=4)](https://github.com/zonky2 "zonky2 (10 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

contaometamodelsopenimmo

### Embed Badge

![Health badge](/badges/anzui-metamodels-openimmo/health.svg)

```
[![Health](https://phpackages.com/badges/anzui-metamodels-openimmo/health.svg)](https://phpackages.com/packages/anzui-metamodels-openimmo)
```

PHPackages © 2026

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