PHPackages                             andreyizmaylov/xml-parser - 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. andreyizmaylov/xml-parser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

andreyizmaylov/xml-parser
=========================

1.2.2(4mo ago)022MITPHP

Since Feb 16Pushed 3mo agoCompare

[ Source](https://github.com/andrewizmaylov/XML-parser)[ Packagist](https://packagist.org/packages/andreyizmaylov/xml-parser)[ RSS](/packages/andreyizmaylov-xml-parser/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

XML Processor
=============

[](#xml-processor)

The package allows you to import data from an external XML file into a specified database table. Data mapping is defined using a mask (pattern).

Large files are read and written to the database in chunks, ensuring application stability and controlled memory usage.

The package supports resuming data import after connection loss or manual stop. Data is considered unique if it is received from a single source within a single day.

Requirements
------------

[](#requirements)

- PHP 8.2

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

[](#installation)

```
composer require andrewizmaylov/XML-parser
```

Usage
-----

[](#usage)

Run the migration to create the table into which data will be imported:

```
(new ContentTableMigration($pdo, 'table_name'))->up();
```

Usage in a Service class with default:

```
