Download the PHP package xieshunv/support without Composer
On this page you can find all versions of the php package xieshunv/support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package support
support
sign verify Basic components helper
composer require xieshunv/support
<?php
use xieshunv\support\Sign;
class test
{
public function __construct()
{
}
/**
* 参与签名的参数
* @param
*/
public function setSign($param = [])
{
//秘钥
$key = "ALssQcALssQc";
//单例模式
$objSign = Sign::getInstance($key);
//参与签名的参数
$param = [
"id"=>"123",
'city'=>'beiJing',
'name'=>'xieshunv',
'amount'=>110.3
];
//签名
$singInfo = $objSign->build($param);
//$singInfo['amount'] = '0.01';
//验签 若修改参与签名的参数的,则验证失败
$ret = $objSign->checkSign($singInfo);
var_dump($ret);
}
}
All versions of support with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
The package xieshunv/support contains the following files
Loading the files please wait ....