light/yii2-xmlparser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

light/yii2-xmlparser

最新稳定版本:0.2.11

Composer 安装命令:

composer require light/yii2-xmlparser

包简介

yii2 xml request parser

README 文档

README

Build Status version Download Issues

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 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

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

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

Test

$ phpunit

LICENSE

MIT

统计信息

  • 总下载量: 73.74k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 19
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 3
  • Forks: 17
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-07