PHPackages                             inquid/cfdi-sat - 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. [API Development](/categories/api)
4. /
5. inquid/cfdi-sat

ActiveLibrary[API Development](/categories/api)

inquid/cfdi-sat
===============

SAT CFDI integration for Laravel applications

v0.2(10mo ago)085MITPHP

Since Aug 19Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/inquid/cfdi-sat)[ Packagist](https://packagist.org/packages/inquid/cfdi-sat)[ RSS](/packages/inquid-cfdi-sat/feed)WikiDiscussions main Synced today

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

CFDI SAT Laravel Package
========================

[](#cfdi-sat-laravel-package)

A Laravel package to interact with Mexico's SAT CFDI web service. It provides helpers to request, download and convert CFDI files to PDF using familiar Laravel patterns.

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

[](#installation)

Require the package via Composer:

```
composer require inquid/cfdi-sat
```

Publish the configuration file:

```
php artisan vendor:publish --tag=cfdi-config
```

### Certificates and Private Keys

[](#certificates-and-private-keys)

The package reads your FIEL certificate and key using Laravel's storage disks, so the files can live on a secure, non-public disk. Configure the disk and path for each file in your `.env`:

```
CFDI_CERT_DISK=local
CFDI_CERT_PATH=certs/cer.cer
CFDI_KEY_DISK=local
CFDI_KEY_PATH=certs/key.key
CFDI_PASSWORD=your-password

```

Define any custom disks in `config/filesystems.php` to keep these high-risk files isolated from the public web root.

Usage
-----

[](#usage)

### Basic Example

[](#basic-example)

Use the provided facade to work with the service:

```
use Inquid\CfdiSat\Facades\Cfdi;

$requestId = Cfdi::createConsulta('2025-01-01 00:00:00', '2025-01-31 23:59:59');
```

### Complete Workflow

[](#complete-workflow)

```
use Inquid\CfdiSat\Facades\Cfdi;

// Process complete workflow: create consulta, download, extract, and convert to PDF
$result = Cfdi::processCompleteWorkflow('2025-01-01 00:00:00', '2025-01-31 23:59:59');

if ($result['success']) {
    echo "Workflow completed successfully!\n";
    echo "- Packages downloaded: {$result['packages_downloaded']}\n";
    echo "- XML files extracted: {$result['xml_files_extracted']}\n";
    echo "- PDF files converted: {$result['pdf_files_converted']}\n";
}
```

### Standalone Usage

[](#standalone-usage)

For non-Laravel applications, you can use the service directly:

```
require_once 'vendor/autoload.php';

use Inquid\CfdiSat\CfdiService;

$cfdiService = new CfdiService();
$requestId = $cfdiService->createConsulta('2025-01-01 00:00:00', '2025-01-31 23:59:59');
```

### Available Methods

[](#available-methods)

- `createConsulta()` - Create a new CFDI consultation
- `checkConsultaStatus()` - Check the status of a consultation
- `downloadPackages()` - Download CFDI packages
- `extractXmlFromPackages()` - Extract XML files from packages
- `convertXmlToPdf()` - Convert a single XML file to PDF
- `convertXmlFolderToPdf()` - Convert all XML files in a folder to PDF
- `processCompleteWorkflow()` - Complete end-to-end workflow

See `src/ExampleUsage.php` for comprehensive examples and the `config/cfdi.php` file for available configuration options.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance54

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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

320d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1505641?v=4)[Luis Gonzalez](/maintainers/gogl92)[@gogl92](https://github.com/gogl92)

---

Top Contributors

[![gogl92](https://avatars.githubusercontent.com/u/1505641?v=4)](https://github.com/gogl92 "gogl92 (11 commits)")

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M992](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k39](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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