WebMoney Signer: a native PHP implementation of the WMSigner module

v2.0.0 2016-06-12 14:33 UTC

This package is not auto-updated.

Last update: 2023-05-27 09:24:48 UTC


Build Status Coverage Status Packagist Dependency Status Packagist Packagist

Provides a convenient way to sign your requests to WebMoney API in PHP with no need to run executables. You may also use WebMoney API PHP Library for more transparent object-oriented code.


WebMoney Signer requires PHP 5.3 compiled with BCMath support. GMP can increase the performance, but is not required.


  1. Install Composer:

    curl -sS | php
  2. Add the php-wmsigner dependency:

    php composer.phar require baibaratsky/php-wmsigner:2.0.*


require_once(__DIR__ . '/vendor/autoload.php'); // Require autoload file generated by composer

use baibaratsky\WebMoney\Signer;

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

If you have your key not in a file, it is possible to provide a key as a string:

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