/yii2-xmlparser

yii2 request xml parser

Primary LanguagePHPMIT LicenseMIT

Build Status

Install

add light/yii2-xmlparser to composer.json

$ composer install

or

$ composer update

Usage

# file app/config/main.php
<?php

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

Test

$ phpunit

LICENSE

MIT