Skip to content

liwenyu/yii2-xmlparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a library help you to handle the xml request. As we all know, 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

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

$ composer install
//or run
$ composer update

also we can do like this:

$ composer require liwenyu/yii2-xmlparser=* --prefer-dist

Usage

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

return [
    'components' => [
    'request' => [
        'parsers' => [
	        	'application/xml' => 'liwenyu\yii2\XmlParser',
	        ],
        ],
    ],
];

LICENSE

MIT

About

yii2 解析xml请求的数据 开发中

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages