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

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

light/yii2-xmlparser
====================

yii2 xml request parser

0.2.11(10y ago)1974.7k↓28.1%17[2 issues](https://github.com/lichunqiang/yii2-xmlparser/issues)MITPHPPHP &gt;=5.4.0

Since Jan 7Pushed 10y ago3 watchersCompare

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

READMEChangelogDependencies (2)Versions (5)Used By (0)

[![Build Status](https://camo.githubusercontent.com/b842b5d6774b7df9d20b052e07c7657b3bf2ef28954279bdb16b0ce88ea573e5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c696368756e7169616e672f796969322d786d6c7061727365722e7376673f7374796c653d666c61742d737175617265)](http://travis-ci.org/lichunqiang/yii2-xmlparser)[![version](https://camo.githubusercontent.com/a7ee9b04de7fbf81a9f02158e78150beea3072541fda73c3977ce3fda541b46e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696768742f796969322d786d6c7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/yii2-xmlparser)[![Download](https://camo.githubusercontent.com/01608c9021ee89db23557811533583501e2537e749d6454a543c4b196611b2cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696768742f796969322d786d6c7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/yii2-xmlparser)[![Issues](https://camo.githubusercontent.com/46f22040ebc7168b7da504dfc02df4e6818d5ead1a456d35bacc747bf1f67076/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c696368756e7169616e672f796969322d786d6c7061727365722e7376673f7374796c653d666c61742d737175617265)](https://github.com/lichunqiang/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 `light/yii2-xmlparser` to composer.json, you can assign version as `*`:

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

also we can do like this:

```
$ composer require light/yii2-xmlparser=* --prefer-dist
```

Usage
-----

[](#usage)

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