PHPackages                             fusionspim/php-demandware-xml - 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. fusionspim/php-demandware-xml

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

fusionspim/php-demandware-xml
=============================

PHP library for working with Demandware XML files

8.1.0(10mo ago)227.5k↓59%6MITPHPPHP &gt;=8.4CI passing

Since Jul 12Pushed 6d ago5 watchersCompare

[ Source](https://github.com/fusionspim/php-demandware-xml)[ Packagist](https://packagist.org/packages/fusionspim/php-demandware-xml)[ RSS](/packages/fusionspim-php-demandware-xml/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (3)Versions (72)Used By (0)

PHP Demandware XML
==================

[](#php-demandware-xml)

A PHP library for working with Demandware XML files:

- **Exporting**: Supports category, product, variant and assignment files and allows elements to be added in the order that makes sense for your code - they'll be exported in the sequence specified by the XSD automatically, and custom attribute elements are ordered by attribute ids for consistency between exports.
- **Validation**: Automatically validates files up to 1Gb (against the included XSD schemas) after exporting.
- **Parsing**: Retrieve category, assignment, product, variation, set and bundle information from an XML file, either as an array, or yield using generators. Maps IDs to the more useful elements and, optionally, attributes.

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

[](#installation)

Run `composer require fusionspim/php-demandware-xml`.

Usage
-----

[](#usage)

See tests for examples on how to use, along with the files within `tests/fixtures` for output examples.

Development
-----------

[](#development)

To ensure consistent linting/testing outcomes (locally and in CI), tools are pinned via `composer.lock`.

Future plans
------------

[](#future-plans)

- Export all root elements sorted by their first attribute value (similar to custom attributes) to ease manual comparison/diffs.
- Convert nested elements currently implemented with string concatenation/loops to nodes (they work, but would be nice for consistency/robustness) &amp; deal with the `setClassification()`/`catalog-id` hack ;)
- [Canonicalise](https://en.wikipedia.org/wiki/Canonical_XML) two sets of XML files and report on different IDs, elements and attributes (useful when different systems/processes have exported the files)

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance80

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity95

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~63 days

Recently: every ~139 days

Total

59

Last Release

308d ago

Major Versions

3.0.4 → 4.0.0-alpha2019-01-07

4.0.1 → 5.0.02020-03-24

5.4.3 → 6.0.02021-12-21

6.1.1 → 7.02024-02-19

7.2 → v8.0.02025-05-20

PHP version history (10 changes)v1.0PHP &gt;=5.6

2.0PHP &gt;=7.0

3.0.0PHP &gt;=7.1

3.0.2PHP &gt;=7.2

5.0.0PHP ^7.3

5.1.0PHP &gt;=7.4

5.4.3PHP ^7.4 || ^8.0

6.0.0PHP ^8.0

7.0PHP &gt;=8.2

v8.0.0PHP &gt;=8.4

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/645637?v=4)[Jamie York](/maintainers/ziadoz)[@ziadoz](https://github.com/ziadoz)

![](https://avatars.githubusercontent.com/u/10739767?v=4)[Andy Stafford](/maintainers/maxakropolis)[@maxakropolis](https://github.com/maxakropolis)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (229 commits)")[![ziadoz](https://avatars.githubusercontent.com/u/645637?v=4)](https://github.com/ziadoz "ziadoz (123 commits)")[![weshooper](https://avatars.githubusercontent.com/u/2248206?v=4)](https://github.com/weshooper "weshooper (105 commits)")[![jackbayliss](https://avatars.githubusercontent.com/u/13621738?v=4)](https://github.com/jackbayliss "jackbayliss (27 commits)")[![MizouziE](https://avatars.githubusercontent.com/u/90829439?v=4)](https://github.com/MizouziE "MizouziE (18 commits)")[![WillJW](https://avatars.githubusercontent.com/u/1878977?v=4)](https://github.com/WillJW "WillJW (18 commits)")[![maxakropolis](https://avatars.githubusercontent.com/u/10739767?v=4)](https://github.com/maxakropolis "maxakropolis (14 commits)")[![ktsm-th](https://avatars.githubusercontent.com/u/108671517?v=4)](https://github.com/ktsm-th "ktsm-th (11 commits)")[![liamkeily](https://avatars.githubusercontent.com/u/2040842?v=4)](https://github.com/liamkeily "liamkeily (10 commits)")[![gabriel403](https://avatars.githubusercontent.com/u/118638?v=4)](https://github.com/gabriel403 "gabriel403 (9 commits)")[![auxbuss](https://avatars.githubusercontent.com/u/82220?v=4)](https://github.com/auxbuss "auxbuss (2 commits)")[![sandisk](https://avatars.githubusercontent.com/u/573405?v=4)](https://github.com/sandisk "sandisk (2 commits)")

---

Tags

phpxmlexportecommercedemandware

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/fusionspim-php-demandware-xml/health.svg)

```
[![Health](https://phpackages.com/badges/fusionspim-php-demandware-xml/health.svg)](https://phpackages.com/packages/fusionspim-php-demandware-xml)
```

###  Alternatives

[goetas/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

493.3k](/packages/goetas-xsd2php-runtime)[bupy7/xml-constructor

The array-like constructor of XML document structure.

1339.5k](/packages/bupy7-xml-constructor)

PHPackages © 2026

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