modImporter β€” universal data import in MODX

modImporter emerged as an attempt to separate the import mechanism itself from a specific store, data format, or project.

The component was built step by step: obtaining source data, parsing, mapping, creating or updating objects, and other operations could be configured separately. Standard MODX processors, such as resource/create and resource/update, were used for the import, so the mechanism was not fundamentally tied to shopModx or miniShop2.

Special attention was paid to diagnostics. Each step could be called individually and its result viewed via Console, while debug mode allowed logging external service requests to the MODX log. This turned the import from a "black box" into a sequence of verifiable operations.

In practice, modImporter has been used for XML/YML, Excel/XLSX, 1C, and other sources, including scenarios involving categories, products, stock balances, prices, and reference books.

In the overall architecture, the component demonstrates the same principle as modxSite: the universal infrastructure performs the general work, while a specific project adds a relatively small layer of its own rules.

modImporter is part of the general Fi1osof component ecosystem.