PHPackages                             mrgenis/sat-certificadosello - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. mrgenis/sat-certificadosello

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

mrgenis/sat-certificadosello
============================

Grupo de clases para administrar los archivos CER y KEY emitidos por el SAT y generar el SELLO y CERTIFICADO el CFDI

v1.0.1(8y ago)31741PHPPHP &gt;=7.0

Since Dec 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/SergioFloresG/sat-certificadosello)[ Packagist](https://packagist.org/packages/mrgenis/sat-certificadosello)[ RSS](/packages/mrgenis-sat-certificadosello/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

mrgenis/sat-certificadosello
============================

[](#mrgenissat-certificadosello)

[![Latest Version](https://camo.githubusercontent.com/eb890ff517741145798d4c6900e70780ce5d4c37031f3b7025bf2ac671ab640a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f53657267696f466c6f726573472f7361742d636572746966696361646f73656c6c6f2e7376673f7374796c653d666c6174)](https://github.com/SergioFloresG/sat-certificadosello/releases)[![Build Status](https://camo.githubusercontent.com/60a7adadab95b2de33ee5305e122674bd70d91ef94aaaf8e29ac56d47559ac91/68747470733a2f2f7472617669732d63692e6f72672f53657267696f466c6f726573472f7361742d636572746966696361646f73656c6c6f2e7376673f6272616e63683d646576267374796c653d666f722d7468652d6261646765)](https://travis-ci.org/SergioFloresG/sat-certificadosello)

Clases para manejar los archivos CER y KEY del SAT para generar el sello de un CFDI

Instalar
--------

[](#instalar)

Puedes instalar este paquete via composer.

```
composer require mrgenis/sat-certificadosello
```

Usar
----

[](#usar)

### Validar CER y KEY

[](#validar-cer-y-key)

Se generar los archivos PEM para CER y KEY, y el archivo PFX

```
/// Dirección del archivo CER
$cer = $this->path('testing_pm.cer');
/// Dirección del archivo KEY
$key = $this->path('testing_pm.key');
/// Contraseña del KEY
/// (solo se require la primera vez para generar los PEM)
$pas = '12345678a';

$storage = StorageCerKey::create($cer, $key, $pas);
/// Se valida que el CER y KEY sean pareja.
$storage->matchCerKey();
```

### Certificar CFDI

[](#certificar-cfdi)

Inyectar en un CFDI 3.3 el NoCertificado, Certificado y Sello. Posterior a la primera validación de los archivos CER y KEY (existen los archivos PEM).

```
/// Dirección del archivo CER
$cer = $this->path('testing_pm.cer');
/// Dirección del archivo KEY
$key = $this->path('testing_pm.key');

$storage = StorageCerKey::create($cer, $key);
$cerSello = new CertificadoSello33($storage);
/// Se obtiene la cedena (string) del xml con NoCertificado, Certificado y Sello.
$xml = $cerSello->injectInformation($xml);
```

Licencia
========

[](#licencia)

MIT License (MIT). Ver [archivo de licencia](https://github.com/SergioFloresG/sat-certificadosello/blob/HEAD/LICENSE) para mas información.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~0 days

Total

2

Last Release

3074d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1000ff027d75eb9ea960ffb6ae06c098ef4beaa04767591350aacb3df959d55?d=identicon)[mrgenis](/maintainers/mrgenis)

---

Top Contributors

[![SergioFloresG](https://avatars.githubusercontent.com/u/4249350?v=4)](https://github.com/SergioFloresG "SergioFloresG (5 commits)")

---

Tags

xmlkeysatcfdisellocertificadooriginal3.3SAT 3.3cadenacer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mrgenis-sat-certificadosello/health.svg)

```
[![Health](https://phpackages.com/badges/mrgenis-sat-certificadosello/health.svg)](https://phpackages.com/packages/mrgenis-sat-certificadosello)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k135.8M851](/packages/jms-serializer)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[sabre/xml

sabre/xml is an XML library that you may not hate.

52832.2M131](/packages/sabre-xml)[phpcfdi/credentials

Library to use eFirma (fiel) and CSD (sellos) from SAT

83152.0k7](/packages/phpcfdi-credentials)

PHPackages © 2026

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