Skip to content

C0nstantin/php-wmsigner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebMoney Signer

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.

Requirements

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

Installation

  1. Install Composer:

    curl -sS https://getcomposer.org/installer | php
    
  2. Add the php-wmsigner dependency:

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

Usage

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);

About

WebMoney Signer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%