jamguozhijun/yii2-xmlparser Yii2 XML Request Parser

993323

Yii2 XML Parser

  1. Installation
  2. Usage
  3. License

An XML request parser just like built-in yii\web\JsonParser.

Installation

The preferred way to install this extension is through composer:

composer require --prefer-dist jamguozhijun/yii2-xmlparser

or

php composer.phar require --prefer-dist jamguozhijun/yii2-xmlparser

Usage

# app/config/main.php (your configuration file)

<?php

return [
    'components' => [
        'request' => [
            'parsers' => [
                'application/xml' => 'jamguozhijun\yii\web\XmlParser',
                'text/xml' => 'jamguozhijun\yii\web\XmlParser',
            ]
        ],
    ],
];

and then:

Yii::$app->request->post();

License

License

1 0
1 follower
2 downloads
Yii Version: 2.0
License: BSD-3-Clause
Category: Networking
Developed by: jamguo
Created on: Nov 22, 2021
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions