定制 baibaratsky/php-wmsigner 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

baibaratsky/php-wmsigner

最新稳定版本:v2.0.0

Composer 安装命令:

composer require baibaratsky/php-wmsigner

包简介

WebMoney Signer: a native PHP implementation of the WMSigner module

README 文档

README

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.

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:2.0.*
    

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

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

统计信息

  • 总下载量: 391.37k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 16
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-01-18