Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Xmldsig Laravel Package

greenter/xmldsig

PHP library for signing SUNAT electronic invoices in Peru. Load a PEM certificate and sign XML files or strings, adding the required ds:Signature block with transforms, digest and RSA signature to your comprobantes.

View on GitHub
Deep Wiki
Context7

greenter/xmldsig is a PHP library for digitally signing Peruvian electronic invoices (comprobantes electrónicos) according to SUNAT regulations. It applies XMLDSig to embed an enveloped ds:Signature element directly into your XML document, producing a valid signed file ready for submission.

A PEM certificate (private key + certificate) is required; the project links a guide for converting .PFX files to PEM. The API is minimal: load the certificate, then sign a string or a file.

  • Sign XML strings or files with signXml() and signFromFile()
  • Load certificates from a path (setCertificateFromFile) or an inline string (setCertificate)
  • Standard SHA-1/RSA signature with the enveloped-signature transform
  • Simple installation via Composer: composer require greenter/xmldsig
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums