承接 martinusso/xml-signer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

martinusso/xml-signer

最新稳定版本:1.0.0

Composer 安装命令:

composer require martinusso/xml-signer

包简介

XML Signer allows you to sign XML documents

README 文档

README

Build Status Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Latest Unstable Version composer.lock License

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-11