PHP code example of bobchengbin / yii2-xml-request-parser
1. Go to this page and download the library: Download bobchengbin/yii2-xml-request-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bobchengbin / yii2-xml-request-parser example snippets
# file app/config/main.php
return [
'components' => [
'request' => [
'parsers' => [
'application/xml' => [
'class' => 'bobchengbin\Yii2XmlRequestParser\XmlRequestParser',
'priority' => 'tag', // the default value is 'tag', you can set 'attribute' value
],
],
],
],
];