PHPackages                             gillbeits/commerceml - 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. gillbeits/commerceml

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

gillbeits/commerceml
====================

Library for CommerceML 2.0 parser

v2.0.2(5y ago)323.3k22MITPHPPHP &gt;=5.6

Since Apr 20Pushed 4y ago6 watchersCompare

[ Source](https://github.com/gillbeits/commerceml)[ Packagist](https://packagist.org/packages/gillbeits/commerceml)[ RSS](/packages/gillbeits-commerceml/feed)WikiDiscussions master Synced 1mo ago

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

PHP CommerceML 2
================

[](#php-commerceml-2)

[![Latest Version on Packagist](https://camo.githubusercontent.com/726a534732636d78aa1106186d28854ac54e0dd8033d36c688841e9794dc2139/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67696c6c62656974732f636f6d6d657263656d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gillbeits/commerceml)[![Build Status](https://camo.githubusercontent.com/539a31a62ea210262a5c762de213d7893413c9c4c0af2f30d1fec8abebdd5456/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f67696c6c62656974732f636f6d6d657263656d6c2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/gillbeits/commerceml)[![Total Downloads](https://camo.githubusercontent.com/10710cdb07e60f13a359d7939ca2003c2e8c2946a04b308321059d81467740ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67696c6c62656974732f636f6d6d657263656d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gillbeits/commerceml)

### О библиотеке

[](#о-библиотеке)

Данная библиотека предназначена для поточного разбора выгруженных из 1с файлов по стандарту Commerce ML 2.

Сам парсер представляет собой диспетчер событий, т.е. при нахождении в структуре Commerce ML 2 объекта нужной структуры, диспетчером вызывается определенной событие и в него передается уже сформированные по модельной структуре объект.

На данный момент существует 5 основных событий:

- получение Категории;
- получение Предложения;
- получение Категории Цен;
- получение Товара;
- получение Свойства товара.

### Простое использование парсера:

[](#простое-использование-парсера)

```
$parser = new \CommerceMLParser\Parser(); // Создание экземпляра класса парсера
$parser->addListener("CategoryEvent", function (\CommerceMLParser\Event\CategoryEvent $categoryEvent) {
    $categories = $categoryEvent->getCategory()->fetch(); // array of Category
}); // добавление функции обработки события CategoryEvent
$parser->parse($pathToImportXmlFile); // полный путь до файла import.xml (Commerce ML 2) выгрузки из 1с
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 84.4% 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 ~620 days

Total

4

Last Release

2184d ago

Major Versions

v1.0.1 → v2.0.0-alpha2015-12-17

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.2

v2.0.2PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bce27f395f2448226b4226e426fc78afe4f52f403f2a06679e9922e8cc15d9f?d=identicon)[gillbeits](/maintainers/gillbeits)

---

Top Contributors

[![gillbeits](https://avatars.githubusercontent.com/u/625954?v=4)](https://github.com/gillbeits "gillbeits (27 commits)")[![xtkach](https://avatars.githubusercontent.com/u/12064652?v=4)](https://github.com/xtkach "xtkach (4 commits)")[![errogaht](https://avatars.githubusercontent.com/u/6324265?v=4)](https://github.com/errogaht "errogaht (1 commits)")

---

Tags

xmlparsercommerceml

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/gillbeits-commerceml/health.svg)

```
[![Health](https://phpackages.com/badges/gillbeits-commerceml/health.svg)](https://phpackages.com/packages/gillbeits-commerceml)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[imangazaliev/didom

Simple and fast HTML parser

2.2k2.3M64](/packages/imangazaliev-didom)[orchestra/parser

XML Document Parser for Laravel and PHP

4581.7M5](/packages/orchestra-parser)[laravie/parser

XML Document Parser for PHP

2342.1M8](/packages/laravie-parser)[goetas-webservices/xsd-reader

Read any XML Schema (XSD) programmatically with PHP

624.7M15](/packages/goetas-webservices-xsd-reader)[vipnytt/sitemapparser

XML Sitemap parser class compliant with the Sitemaps.org protocol.

772.2M10](/packages/vipnytt-sitemapparser)

PHPackages © 2026

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