1. Go to this page and download the library: Download liasica/yii2-helpers 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/ */
liasica / yii2-helpers example snippets
$xml = new ArrayToXML();
print $xml->buildXML($array);
$xml = new SimpleArrayToXml($redpack->redpackData);
var_dump($xmlmodel->buildXML());
$curl = new Curl($url);
var_dump($curl->Get());
$curl = new Curl($url);
$curl->setData($data);
var_dump($curl->Post());