martinusso/xml-signer
最新稳定版本:1.0.0
Composer 安装命令:
composer require martinusso/xml-signer
包简介
XML Signer allows you to sign XML documents
关键字:
README 文档
README
XML Signer allows you to sign XML documents using X.509 digital certificates.
Installation
You can install the xml-signer in 2 different ways:
Install it via Composer
$ composer require martinusso/xml-signer
Or, clone the Git repository (https://github.com/martinusso/xml-signer).
How to use it
Instantiating a certificate object with PFX file
$password = '.pfx password here!';
$pfx = file_get_contents('path/to/certificate.pfx');
$certificate = Certificate::readPfx($pfx, $password);
signing a xml
$signer = new Signer($certificate);
$xmlSigned = $signer->xml($XmlContent, $tagName);
Contribute
Please refer to CONTRIBUTING.md for information on how to contribute to XmlSigner
License
This library is released under the MIT license.
统计信息
- 总下载量: 180
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-11