PHPackages                             michaeld555/nfe-parser - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. michaeld555/nfe-parser

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

michaeld555/nfe-parser
======================

A simple library to create fiscal danfe files

v1.0.3(1y ago)043MITPythonPHP &gt;=8.0

Since May 31Pushed 1y ago1 watchersCompare

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

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

DANFE File Generator
--------------------

[](#danfe-file-generator)

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

[](#installation)

Run this composer command in your application:

```
composer require michaeld555/nfe-parser

```

Using
-----

[](#using)

You can create a Danfe instance and pass the xml file path and output danfe file path. This will generate your document and save in your passed path.

```
    use Michaeld555\Danfe;

    Danfe::simple('path_to_file/nfe.xml', 'path_to_file/danfe.pdf');

    if (file_exists('path_to_file/danfe.pdf')) {

        echo "the file was generated successfully";

    } else {

        echo "an error occurred during the file generation";

    }
```

If you want to add your logo to the document, you can use the custom method passing the logo path.

```
    Danfe::custom('path_to_file/nfe.xml', 'path_to_file/danfe.pdf', 'path_to_logo/logo.png');
```

Notes:
------

[](#notes)

- If you are using a linux system, make sure you have python3 and the package [brazilfiscalreport](https://github.com/Engenere/BrazilFiscalReport/tree/main) installed on your system, and that your application is enabled to execute customs python scripts

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

4

Last Release

701d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/468ac93c5d3d72f0574d393b2582b56059fcc1cf48f564e63717a685f19d8b50?d=identicon)[michaeld555](/maintainers/michaeld555)

---

Top Contributors

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

---

Tags

phplaravelpdfnfeDanfefiscal

### Embed Badge

![Health badge](/badges/michaeld555-nfe-parser/health.svg)

```
[![Health](https://phpackages.com/badges/michaeld555-nfe-parser/health.svg)](https://phpackages.com/packages/michaeld555-nfe-parser)
```

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M276](/packages/barryvdh-laravel-dompdf)[mostafaznv/pdf-optimizer

PDF optimization tool for PHP and Laravel applications

170125.8k](/packages/mostafaznv-pdf-optimizer)[pontedilana/php-weasyprint

PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.

761.1M7](/packages/pontedilana-php-weasyprint)[renatio/dynamicpdf-plugin

October HTML to PDF converter using dompdf library.

3113.4k3](/packages/renatio-dynamicpdf-plugin)

PHPackages © 2026

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