PHPackages                             bestyii/yii2-xmlparser - 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. bestyii/yii2-xmlparser

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

bestyii/yii2-xmlparser
======================

yii2 xml request parser

v1.0.0(3y ago)068MITPHPPHP &gt;=5.4.0

Since Sep 21Pushed 3y agoCompare

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

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

[![Build Status](https://camo.githubusercontent.com/b9c474ba66d76c5fed165fb9b02b035f5d0a4d3d194fc5903300da12ed8864ae/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626573747969692f796969322d786d6c7061727365722e7376673f7374796c653d666c61742d737175617265)](http://travis-ci.org/bestyii/yii2-xmlparser)[![version](https://camo.githubusercontent.com/f148e3e09beb8a2e0b5cf1babc4607efe10590321d47f9b1316be67971f88604/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626573747969692f796969322d786d6c7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bestyii/yii2-xmlparser)[![Download](https://camo.githubusercontent.com/653ed84e90d8fe212b273f09e005c892235ace0de282ac6ffa6c7aa8f394fc50/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626573747969692f796969322d786d6c7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bestyii/yii2-xmlparser)[![Issues](https://camo.githubusercontent.com/20a854985a0f412ed8267499d65116e902b9d377996872d767407fd9eb44d410/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f626573747969692f796969322d786d6c7061727365722e7376673f7374796c653d666c61742d737175617265)](https://github.com/bestyii/yii2-xmlparser/issues)

Overview
--------

[](#overview)

This is a library help you to handle the xml request. As we all know, [Yii2](https://github.com/yiisoft/yii2) provided an built-in request parser for `json` like requests, it's `yii\web\JsonParser`. Sometimes, we need to handle the request of xml, so this library is birthed.

Install
-------

[](#install)

Add `bestyii/yii2-xmlparser` to composer.json, you can assign version as `*`:

```
$ composer install
//or run
$ composer update
```

also we can do like this:

```
$ composer require bestyii/yii2-xmlparser --prefer-dist
```

Usage
-----

[](#usage)

```
# file app/config/main.php [your configuration file]
