PHPackages                             monkey-data/online-store-xml-feed-generator - 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. monkey-data/online-store-xml-feed-generator

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

monkey-data/online-store-xml-feed-generator
===========================================

MonkeyData online store XML feed generator

1.0.11(9y ago)11.4k2MITPHPPHP &gt;=5.3.0

Since Dec 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/MonkeyData/php-online-store-xml-feed-generator)[ Packagist](https://packagist.org/packages/monkey-data/online-store-xml-feed-generator)[ Docs](https://developers.monkeydata.com)[ RSS](/packages/monkey-data-online-store-xml-feed-generator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (14)Used By (0)

MonkeyData PHP Online Store XML feed generator
==============================================

[](#monkeydata-php-online-store-xml-feed-generator)

[![Latest Stable Version](https://camo.githubusercontent.com/3168f90f8004c73c32607601e27e04ef574057afe527a950ed824941584dcc71/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e6b65792d646174612f6f6e6c696e652d73746f72652d786d6c2d666565642d67656e657261746f722f762f737461626c65)](https://packagist.org/packages/monkey-data/online-store-xml-feed-generator)[![License](https://camo.githubusercontent.com/fa5c98ae3e0dd387b2d3e27e745ef9b3756e1bbbdec52cc5570afc7f45cad6c1/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e6b65792d646174612f6f6e6c696e652d73746f72652d786d6c2d666565642d67656e657261746f722f6c6963656e7365)](https://packagist.org/packages/monkey-data/online-store-xml-feed-generator)

Documentation of MonkeyData XML Library
---------------------------------------

[](#documentation-of-monkeydata-xml-library)

Thank you for choosing our library for implementation. The library is prepared to easily implement the XML feed for MonkeyData. We've tried to correct all types of possible errors which could happen during the library implementation to ensure maximum reliability, data and time sophistication.

The library is built to simplify the creation of your XML file with orders from your online store with parameters of order dates from and to the specific date. It also implements two basic ways of authentication, which can be set in the MonkeyData library itself. You don't have to worry about the outgoing XML structure, correct headings or security questions, if you don't want to.

Library instalation
-------------------

[](#library-instalation)

Note: Minimum required version of PHP is 5.3.0

#### 1. Composer

[](#1-composer)

Require this package with composer using the following command

```
composer require monkey-data/online-store-xml-feed-generator
```

#### 2. Direct

[](#2-direct)

Download the library in the "resources" section, then unzip it anywhere to your project. Usually, the external libraries are placed in folders "libs", "vendor" or somewhere similar. Everything depends on your online store solution. It's also possible to run the library completely off your project, independently. For implementation just create the web space and code the library there.

### Quick implementation example

[](#quick-implementation-example)

1. There is an 'example' folder where you find 3 files with example implementations without a composer autoload. These files are to be copied to a folder that is accessible from your web browser.
2. A model 'MonkeyDataXmlModel' should be edited according to your database structure in order to get all needed data out of DB.

### Security

[](#security)

A hash is used for security’s sake. After installation a random hash is generated, but you are advised to set your own in 'config.hash'

**hash is required**

For instance (do not use this example):

```
b6eb6a84aeac1f937c354dc3b826c83e

```

Your url feed must contain a hash parameter. For example:

```
https://{domain}/{path_to_generator_script}/?hash={hash}
https://domain.com/monkeydata-generator/?hash=b6eb6a84aeac1f937c354dc3b826c83e

```

### Implementation example

[](#implementation-example)

We've prepared an example for quick and easy implementation. Open the address with your library in your browser. For example: . If this web space is accessible (not forbidden via .htaccess), a sample XML will appear in the window (start of index.php). If you have a space for scripts in your application, which is not publicly accessible, put the file index.php into the public part of your application and rewrite tracks to files in require functions.

File index.php contents these lines:

```
// MonkeyDataExampleXmlGenerator should be loaded via autoload

$xmlGenerator = new MonkeyDataExampleXmlGenerator();
$xmlGenerator->run();
```

If you've done everything correctly, the sample XML will open in your browser.

Now it's the right time to explain the meaning of these files and how to ensure your output XML will display real orders correctly instead of the sample one.

File autoloader.php is responsible for loading all required classes. It consists of MyAutoloud function, which is put into the queue of all autolouders (if the queue of autolouders is not active, it activates automatically) and opens the whole MonkeyData library to your online store. You can use your own autoloader, of course. In that case the library location is in the namespace MonkeyData/XmlGenerator/... . Namespace fully corresponds with the directory structure, which should make the implementation easier.

MonkeyDataXmlModel.php is the specific implementation of a basic XmlModel and consists 7 basic functions (you'll implement these) with a sample of output, it also consists of connection settings for MySQL database via PDO and security settings (description in the particular section).

MonkeyDataExampleXmlGenerator.php is the class, which connects our MonkeyDataXmlModel with the library, which later generates the XML output.

### Implementation

[](#implementation)

Your task is to implement the model with the predefined interface (CurrentXmlModelInterface). The interface sets 7 basic functions, into which you'll program the selection of data from your e-shop database.

```
getOrdersItems()
getPaymentsItems()
getShippingsItems()
getProductsItems()
getOrderStatusesItems()
getCustomersItems()
getCategoriesItems()
```

Detailed descriptions of particular functions are in the sections itselves, where every behavior aspect and links for the rest of the library are described.

For easy installation, we've prepared a mysql database connection via PDO (in the model in class variant $this-&gt;connection). If you decide to use prepared PDO, set the login to your database in the heading of the model.

```
protected $config = array(
        'database' => array(
            'use' => true,
            'host' => "localhost",
            'name' => "db_name",
            'user' => "db_user",
            'pass' => "db_pass"
        )
    );
```

Feedback
--------

[](#feedback)

Please submit issues, and send your feedback and suggestions as often as you have them.

In case you need help, contact MonkeyData developers by email at .

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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 ~19 days

Recently: every ~31 days

Total

12

Last Release

3544d ago

PHP version history (3 changes)1.0.0PHP &gt;=5.5.9

1.0.2PHP &gt;=5.5.0

1.0.7PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/747b3eba64e9e0951206cce85268f0353d92018f875df2df49582345abb2251c?d=identicon)[monkeydata](/maintainers/monkeydata)

---

Top Contributors

[![tomaswidlak](https://avatars.githubusercontent.com/u/7429915?v=4)](https://github.com/tomaswidlak "tomaswidlak (36 commits)")[![MichalHodan](https://avatars.githubusercontent.com/u/16043654?v=4)](https://github.com/MichalHodan "MichalHodan (2 commits)")[![MonkeyData](https://avatars.githubusercontent.com/u/15999727?v=4)](https://github.com/MonkeyData "MonkeyData (1 commits)")

---

Tags

phpxmlfeedmonkeydata

### Embed Badge

![Health badge](/badges/monkey-data-online-store-xml-feed-generator/health.svg)

```
[![Health](https://phpackages.com/badges/monkey-data-online-store-xml-feed-generator/health.svg)](https://phpackages.com/packages/monkey-data-online-store-xml-feed-generator)
```

###  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.

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

PHPackages © 2026

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