Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamguoxiaoqi/yii2-xmlparser
Yii2 XML request parser
https://github.com/jamguoxiaoqi/yii2-xmlparser
parse parser request xml xml-parser yii yii2 yiiframework
Last synced: 26 days ago
JSON representation
Yii2 XML request parser
- Host: GitHub
- URL: https://github.com/jamguoxiaoqi/yii2-xmlparser
- Owner: jamguoxiaoqi
- License: bsd-3-clause
- Created: 2021-11-15T12:16:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-24T02:07:28.000Z (over 2 years ago)
- Last Synced: 2024-09-30T22:10:54.850Z (about 1 month ago)
- Topics: parse, parser, request, xml, xml-parser, yii, yii2, yiiframework
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Yii2 XML Parser
An XML request parser just like built-in [yii\web\JsonParser](https://www.yiiframework.com/doc/api/2.0/yii-web-jsonparser).
Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/):
```
composer require --prefer-dist jamguozhijun/yii2-xmlparser
```or
```
php composer.phar require --prefer-dist jamguozhijun/yii2-xmlparser
```Usage
-----```php
# app/config/main.php (your configuration file)[
'request' => [
'parsers' => [
'application/xml' => 'jamguozhijun\yii\web\XmlParser',
'text/xml' => 'jamguozhijun\yii\web\XmlParser',
]
],
],
];
```and then:
```php
Yii::$app->request->post();
```License
-------![License](https://img.shields.io/github/license/jamguozhijun/yii2-xmlparser)