Registry / crypto / robrichards-xmlseclibs

robrichards-xmlseclibs

JSON →
library3.1.5phppackagistunverified

A PHP library for XML Security.

composer require robrichards/xmlseclibs
INSTALL
IMPORT
SIG · ROBRICHARDS-XMLSEC
R
robrichards-xmlseclibs
cryptophpv3.1.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

XMLSecurityDSig
✓ use RobRichards\XMLSecLibs\XMLSecurityDSig;

Verify an XML digital signature.

use RobRichards\XMLSecLibs\XMLSecurityDSig; $doc = new DOMDocument(); $doc->load('signed.xml'); $objDSig = new XMLSecurityDSig(); $objDSig->locateSignature($doc); $objDSig->validateReference(); $key = $objDSig->locateKey(); if ($objDSig->verify($key)) { echo "Signature valid"; }
Debug
Known issues
breakingRequires PHP 7.1+ and the xml extension
fix
Install the PHP xml extension and ensure PHP version >= 7.1.
affects: <3.1.0
Upgrade
Version history
3.1.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
28
Resources
robrichards-xmlseclibs — pip install robrichards-xmlseclibs · libregistry