PHPackages                             pixan/cfdi - 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. pixan/cfdi

ActiveLibrary

pixan/cfdi
==========

CFDi Module for Pixan APPS

0.0.5(7y ago)119XSLT

Since Jan 28Pushed 7y ago2 watchersCompare

[ Source](https://github.com/pixan/cfdi)[ Packagist](https://packagist.org/packages/pixan/cfdi)[ RSS](/packages/pixan-cfdi/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (6)Used By (0)

Pixan CFDI
==========

[](#pixan-cfdi)

CFDI is a package that provides electronic invoicing capabilities through different PAC providers in Mexico for Laravel applications.

Installation
------------

[](#installation)

To install this package using composer:

```
composer require pixan/cfdi
```

Configuration
-------------

[](#configuration)

Add the service provider to the `providers` array in app.php:

```
Pixan\Cfdi\CfdiServiceProvider::class,
```

Publish the configuration file, make sure you select *Pixan\\Cfdi\\CfdiServiceProvider* from the provided menu:

```
php artisan vendor:publish
```

Set the configuration parameters in the newly created configuration file:

```
config/cfdi.php
```

Usage
-----

[](#usage)

### Generate an XML seal

[](#generate-an-xml-seal)

To generate the seal of a previously formed XML file, create an array containing a valid CFDi certificate and its key file in PEM format. Calling the `seal` method on the *cfdi* instance will return a valid seal string for the provided XML document:

```
$config = [
    'certificate' => $certificateFileContents,
    'pem' => $pemFileContents
];
$cfdi = new Cfdi($config);
$seal = $cfdi->seal($xml);
```

### Stamp an XML

[](#stamp-an-xml)

Calling the `stamp` method on the *cfdi* instance will return a valid xml that has been stamped by the requested PAC service and configured environment. \*Make sure that the proper configuration was provided when constructing the *cfdi* instance.

```
$config = [
    'certificate' => $certificateFileContents,
    'pem' => $pemFileContents
];
$cfdi = new Cfdi($config);
$seal = $cfdi->stamp($xml);
```

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Total

5

Last Release

2647d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/333cc45a1c32c4f88e43b8d33167ef0c726c8f13120cc33323abda68021170cd?d=identicon)[memovillalobos](/maintainers/memovillalobos)

---

Top Contributors

[![pixan](https://avatars.githubusercontent.com/u/17522377?v=4)](https://github.com/pixan "pixan (9 commits)")

### Embed Badge

![Health badge](/badges/pixan-cfdi/health.svg)

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

PHPackages © 2026

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