PHP code example of bestyii / yii2-xmlparser

1. Go to this page and download the library: Download bestyii/yii2-xmlparser 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/ */

    

bestyii / yii2-xmlparser example snippets


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


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