Skip to content

juanbautista0/signer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firmador de Documentos XML de Facturación Electrónica DIAN

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();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages