martinusso/xml-signer

This package is abandoned and no longer maintained. No replacement package was suggested.

XML Signer allows you to sign XML documents

1.0.0 2017-10-17 10:43 UTC

This package is not auto-updated.

Last update: 2020-02-21 17:55:17 UTC


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.