PHPackages                             paycore/xmldsig - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. paycore/xmldsig

ActiveLibrary[Security](/categories/security)

paycore/xmldsig
===============

Library for signing XML requests in accordance with the UOC rules

v0.0.3(1y ago)023.0k↓30.8%MITPHPPHP &gt;=7.1

Since May 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/paycoreio/xmldsig)[ Packagist](https://packagist.org/packages/paycore/xmldsig)[ Docs](https://github.com/paycoreio/xmldsig)[ RSS](/packages/paycore-xmldsig/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

### It is fork of , with minor changes to sign requests to UPC.

[](#it-is-fork-of-httpsgithubcomgreenterxmldsig-with-minor-changes-to-sign-requests-to-upc)

XmlDSig - Greenter
==================

[](#xmldsig---greenter)

This library is used to sign requests according to UPC rules.

The certificate in .PEM is required, you can use the following example to [convert the .PFX certificate to the required format](https://github.com/paycoreio/xmldsig/blob/master/CONVERT.md).

Install
-------

[](#install)

Install using Composer from [packagist](https://packagist.org/packages/paycore/xmldsig).

```
composer require paycore/xmldsig
```

Example
-------

[](#example)

```
use Greenter\XMLSecLibs\Sunat\SignedXml;

require 'vendor/autoload.php';

$xmlData = file_get_contents('path-dir/20600995805-01-F001-1.xml');
$certPath = 'path-dir/SFSCert.pem'; // Convertir pfx to pem

$signer = new SignedXml();
$signer->setCertificateFromFile($certPath); // You can also use $signer->setCertificate ($certData);

$xmlSigned = $signer->signXml($xmlData);

header('Content-Type: text/xml');
echo $xmlSigned;
```

**Resultado:**

Before:

```

```

After:

```

                    IwJuNQGQaHmmm3iv2jj8JDv70Ow=

                nLaghokzMNrmrfPnbIg9b........wzZ2CgLTVjWQUAQ4wDAYDVQQIEwVNYWluZTE1UiLFwZXXXPUlf2o=

                        MIIFhzCCA3OgAwI......MIIEVDCCAzygAwIBAgIJAPTrkMJbCOr1MA0GCSqGSIb3DQEBBQUAMHkxCzAJBgNVBAYTAlVTVQQIEwVNYWluZTEgMOiRJ00nE=

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance42

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1044 days

Total

3

Last Release

461d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d3834393f8093286a88277f704ad689eeb41333ed2d94ed12eb83e622901286?d=identicon)[dzubchik](/maintainers/dzubchik)

---

Top Contributors

[![SergeKoTnk](https://avatars.githubusercontent.com/u/105853811?v=4)](https://github.com/SergeKoTnk "SergeKoTnk (1 commits)")

---

Tags

xmlsecuritysignaturexmldsigupc

### Embed Badge

![Health badge](/badges/paycore-xmldsig/health.svg)

```
[![Health](https://phpackages.com/badges/paycore-xmldsig/health.svg)](https://phpackages.com/packages/paycore-xmldsig)
```

###  Alternatives

[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[greenter/xmldsig

Libreria para firmar XML según normativa de SUNAT en Facturación Electrónica

38794.6k9](/packages/greenter-xmldsig)[ass/xmlsecurity

The XmlSecurity library is written in PHP for working with XML Encryption and Signatures

955.6M30](/packages/ass-xmlsecurity)[fr3d/xmldsig

Tool for easy management of XML Signatures (http://www.w3.org/TR/xmldsig-core/)

63150.6k1](/packages/fr3d-xmldsig)[lyquidity/xml-signer

A PHP to create and verify XAdES signature

2164.6k1](/packages/lyquidity-xml-signer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
