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
Requires
- php: ^5.6 || ^7.0
- ext-dom: *
- ext-openssl: *
Requires (Dev)
- phpunit/phpunit: ^6.4
This package is not auto-updated.
Last update: 2020-02-21 17:55:17 UTC
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.