PHPackages                             koriym/data-file - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. koriym/data-file

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

koriym/data-file
================

Load XML file with XSD validation

1.0.1(2y ago)0219.0k↓16.7%1MITPHPPHP ^7.2 || ^8.0

Since Jun 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/koriym/Koriym.DataFile)[ Packagist](https://packagist.org/packages/koriym/data-file)[ RSS](/packages/koriym-data-file/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (3)Used By (1)

Koriym.DataFile
===============

[](#koriymdatafile)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/eb3f12e0285ebb122f87ffbb6a664456d49546909e741e369f51b843407b575e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6f7269796d2f4b6f7269796d2e4461746146696c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/koriym/Koriym.DataFile/?branch=master)[![Type Coverage](https://camo.githubusercontent.com/7333fa5d3d66c4491293a5691cb3c247dd16985e55532ae04690b07b60a777b8/68747470733a2f2f73686570686572642e6465762f6769746875622f6265617273756e6461792f424541522e5061636b6167652f636f7665726167652e737667)](https://shepherd.dev/github/bearsunday/BEAR.Package)[![codecov](https://camo.githubusercontent.com/ece099c69ef98fd49a70c5fea17b5be16b10ec4fa2d2f4588c1d427f205897ed/68747470733a2f2f636f6465636f762e696f2f67682f6b6f7269796d2f4b6f7269796d2e4461746146696c652f67726170682f62616467652e7376673f746f6b656e3d474e4543374f424c4e39)](https://codecov.io/gh/koriym/Koriym.DataFile)[![Continuous Integration](https://github.com/koriym/Koriym.DataFile/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/koriym/Koriym.DataFile/actions/workflows/continuous-integration.yml)

XML Config Loader
-----------------

[](#xml-config-loader)

This library helps you easily validate and load XML configuration files using XSD schemas. It's designed to ensure the integrity and consistency of your configuration data with minimal effort. Additionally, it can be used to load and validate general XML files.

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

[](#installation)

To get started, install the required package using Composer:

```
composer require koriym/data-file
```

Validate and load the XML file.

Usage
-----

[](#usage)

### Simple XML Load with Validation

[](#simple-xml-load-with-validation)

Load and validate your XML files with just a few lines of code:

```
use Koriym\DataFile\XmlLoad;

$xml = (new XmlLoad())('/path/to/xml', '/path/to/xsd');
assert($xml instanceof SimpleXMLElement);
```

### Config XML Load

[](#config-xml-load)

Easily load configuration files (`config.xml` or `config.xml.dist`) from the specified directory. If both files are present, config.xml is loaded first:

```
use Koriym\DataFile\XmlConfigLoad;

$xml = (new XmlConfigLoad('confilg.xml'))('/path/to/config_dir', '/path/to/xsd');
assert($xml instanceof SimpleXMLElement);
```

Using `.dist` files allows you to maintain default settings in your repository while keeping local configurations separate.

### Notes

[](#notes)

- The XSD schema ensures your XML files adhere to the defined structure and content standards.
- `.dist` files are useful for providing default configurations that can be overridden by local settings.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

Every ~1092 days

Total

2

Last Release

754d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db4fc75ffc631168d0d7143b6f2c24b1534dfb921212bd851c026c5cbbb1344d?d=identicon)[koriym](/maintainers/koriym)

---

Top Contributors

[![koriym](https://avatars.githubusercontent.com/u/529021?v=4)](https://github.com/koriym "koriym (34 commits)")

---

Tags

xmlxsd

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/koriym-data-file/health.svg)

```
[![Health](https://phpackages.com/badges/koriym-data-file/health.svg)](https://phpackages.com/packages/koriym-data-file)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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