use Juanbautista0/Signer/Policy;
use Juanbautista0/Signer/Tools/CertificateHandler;
use Juanbautista0/Signer/Tools/SignerPolicy;
$unsignedXml = '<Invoice xmlns="urn:oasis:names: ...';
$docType = "fv";
$uuid = "{{UUIDV4}}";
$certificate = new CertificateHandler();
$certicate->publicKey = "{{CERTICATE_PUBLIC_KEY}}";
$certicate->privateKey = "{{CERTICATE_PRIVATE_KEY}}";
$certicate->path = "{{CERTICATE_PATH}}";
$certicate->password = "{{CERTICATE_PASSWORD}}";
$signerPolicy = new SignerPolicy();
$signatureTool = new Policy($signerPolicy, $certificate, $unsignedXml, $docType);
$signatureTool->Sign();
-
Notifications
You must be signed in to change notification settings - Fork 0
License
juanbautista0/signer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published