1. Go to this page and download the library: Download pulyavin/wmxml 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/ */
pulyavin / wmxml example snippets
# иницализация объекта работы с API, используя скомпилированный wmsigner
$wmxml = new pulyavin\wmxml\WMXml(
"classic",
[
"wmid" => "323724870812",
"wmsigner" => "/wmsigner/wmsigner",
"transid" => "./wmsigner/transid.txt",
]
);
# иницализация объекта работы с API, используя wmsigner на PHP
$wmsigner = new baibaratsky\WebMoney\Signer("323724870812", "./keyfile.kwm", "mykeypassword");
$wmxml = new pulyavin\wmxml\WMXml(
"classic",
[
"wmid" => "323724870812",
"wmsigner" => $wmsigner,
"transid" => "./wmsigner/transid.txt",
]
);
# переводим средства
$wmxml->xml2(
"Z123456789122",
"Z123456789123",
1.23,
"купил слона"
);
curl -sS https://getcomposer.org/installer | php
php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.