PHP code example of baibaratsky / php-wmsigner

1. Go to this page and download the library: Download baibaratsky/php-wmsigner 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/ */

    

baibaratsky / php-wmsigner example snippets




use baibaratsky\WebMoney\Signer;

$signer = new Signer('wmid', '/full/path/to/the/key.kwm', 'password');
$data = 'Data to be signed'; 
$signature = $signer->sign($data);

$signer = new Signer('wmid', $yourKeyData, 'password');

    curl -sS https://getcomposer.org/installer | php
    

    php composer.phar