PHPackages                             nfephp-org/sped-mdfe - 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. nfephp-org/sped-mdfe

ActiveLibrary[API Development](/categories/api)

nfephp-org/sped-mdfe
====================

API para geração e comunicação da MDFe com as SEFAZ autorizadoras.

V4.2.0(1y ago)50135.1k—0.3%106[4 issues](https://github.com/nfephp-org/sped-mdfe/issues)[1 PRs](https://github.com/nfephp-org/sped-mdfe/pulls)GPL-3.0+PHPPHP &gt;=7.0

Since Mar 1Pushed 3mo ago27 watchersCompare

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

READMEChangelog (6)Dependencies (7)Versions (7)Used By (0)

SPED-MDFE v3.00a
================

[](#sped-mdfe-v300a)

Framework para geração e comunicação dos MDFe com as SEFAZ autorizadoras.

*sped-mdfe é um framework para geração MDFe e eventos na comunicação com as SEFAZ autorizadoras.*

[![Build Status](https://camo.githubusercontent.com/ab3ca4deb241e28305ee20e41c25117ec12bfc292814ac4ce51d091524af6d41/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e66657068702d6f72672f737065642d6d6466652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/nfephp-org/sped-mdfe)[![Coverage Status](https://camo.githubusercontent.com/8e069decb2b604d8c6dfe69bd0b63b0095a89ea6e15ea7143ce00d01330cecc1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e66657068702d6f72672f737065642d6d6466652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nfephp-org/sped-mdfe/code-structure)[![Quality Score](https://camo.githubusercontent.com/dd859dbfe7fba64b4507d4daa33c76df0e62e90992e39569be56057b8c204344/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e66657068702d6f72672f737065642d6d6466652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nfephp-org/sped-mdfe)[![Latest Version on Packagist](https://camo.githubusercontent.com/738b9beba1b0ce60a47675750cde6fe07158520c38202bb784d1964b5e242a74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e66657068702d6f72672f737065642d6d6466652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nfephp-org/sped-mdfe)[![License](https://camo.githubusercontent.com/e0273385d246b6a90332d858facac88177613ea018b9a21e402ffad0d613f302/68747470733a2f2f706f7365722e707567782e6f72672f6e66657068702d6f72672f6e66657068702f6c6963656e73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nfephp-org/sped-mdfe)[![Total Downloads](https://camo.githubusercontent.com/9b234d136c0d3da6fc87f67ba883a10561534e5d99ab91baa84e612025522892/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e66657068702d6f72672f737065642d6d6466652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nfephp-org/sped-mdfe)

[![Issues](https://camo.githubusercontent.com/106bdcf03dd2d2d77a827d84565102b8140aed638b8643f0ee031c567cb1cf8d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6e66657068702d6f72672f737065642d6d6466652e7376673f7374796c653d666c61742d737175617265)](https://github.com/nfephp-org/sped-mdfe/issues)[![Forks](https://camo.githubusercontent.com/26985ee87ff30c52bdd1e8afa4e50d3c4a55cd13bb9e340d9f0a979a1294d2c6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6e66657068702d6f72672f737065642d6d6466652e7376673f7374796c653d666c61742d737175617265)](https://github.com/nfephp-org/sped-mdfe/network)[![Stars](https://camo.githubusercontent.com/a8a0969c3112185886630013227f218d1ced1c3c69123798b1d9afec041ee00a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e66657068702d6f72672f737065642d6d6466652e7376673f7374796c653d666c61742d737175617265)](https://github.com/nfephp-org/sped-mdfe/stargazers)[![Chat](https://camo.githubusercontent.com/445d620f465679229fca473137bf37506a0bc714bfdc57a55948c4814980d679/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4749545445522d3425323075736572732532306f6e6c696e652d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://gitter.im/nfephp-org/sped-mdfe?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Objetivo
--------

[](#objetivo)

Este pacote visa fornecer os meios para gerar, assinar e enviar os dados relativos ao projeto Sped MDFe.

Este pacote faz parte da API NFePHP e atende aos parâmetros das PSR2 e PSR4, bem como é desenvolvida para adequar as versões ATIVAS do PHP e aos layouts da MDFe em vigor.

Install
-------

[](#install)

```
composer require nfephp-org/sped-mdfe:dev-master
```

Change log
----------

[](#change-log)

Acompanhe o [CHANGELOG](CHANGELOG.md) para maiores informações sobre as alterações recentes.

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

[](#contributing)

Para contribuir por favor observe o [CONTRIBUTING](CONTRIBUTING.md) e o [Código de Conduta](CONDUCT.md) para detalhes.

Pull Request
------------

[](#pull-request)

Para que seu Pull Request seja aceito ele deve estar seguindo os padrões descritos neste documento

Security
--------

[](#security)

Caso você encontre algum problema relativo a segurança, por favor envie um email diretamente aos mantenedores do pacote ao invés de abrir um ISSUE.

Credits
-------

[](#credits)

- Cleiton Perin (Owner)
- Roberto L. Machado (Owner)

License
-------

[](#license)

Este pacote está diponibilizado sob GPLv3 ou LGPLv3 ou MIT License (MIT). Leia [Arquivo de Licença](LICENSE.md) para maiores informações.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance65

Regular maintenance activity

Popularity50

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor4

4 contributors hold 50%+ of commits

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

Recently: every ~515 days

Total

6

Last Release

375d ago

Major Versions

v2.0 → v4.0.02019-09-18

PHP version history (2 changes)v2.0PHP ~5.5|~7.0

v4.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/83b3feccdc04943c30ac9b785307cb73385c30d5b3ad8a7c700f7704416dc280?d=identicon)[robmachado](/maintainers/robmachado)

---

Top Contributors

[![robmachado](https://avatars.githubusercontent.com/u/1437008?v=4)](https://github.com/robmachado "robmachado (56 commits)")[![icompsoftcleiton](https://avatars.githubusercontent.com/u/6797894?v=4)](https://github.com/icompsoftcleiton "icompsoftcleiton (43 commits)")[![cleitonperin](https://avatars.githubusercontent.com/u/51366715?v=4)](https://github.com/cleitonperin "cleitonperin (39 commits)")[![Gleidson2012](https://avatars.githubusercontent.com/u/2087215?v=4)](https://github.com/Gleidson2012 "Gleidson2012 (27 commits)")[![lcardosozago](https://avatars.githubusercontent.com/u/13101897?v=4)](https://github.com/lcardosozago "lcardosozago (24 commits)")[![cavassin12](https://avatars.githubusercontent.com/u/16469521?v=4)](https://github.com/cavassin12 "cavassin12 (12 commits)")[![brunoneve](https://avatars.githubusercontent.com/u/3729479?v=4)](https://github.com/brunoneve "brunoneve (9 commits)")[![marciotisouza](https://avatars.githubusercontent.com/u/32943633?v=4)](https://github.com/marciotisouza "marciotisouza (9 commits)")[![igorwanbarros](https://avatars.githubusercontent.com/u/8918508?v=4)](https://github.com/igorwanbarros "igorwanbarros (9 commits)")[![uilhianet](https://avatars.githubusercontent.com/u/7840380?v=4)](https://github.com/uilhianet "uilhianet (8 commits)")[![maisonsakamoto](https://avatars.githubusercontent.com/u/6425225?v=4)](https://github.com/maisonsakamoto "maisonsakamoto (8 commits)")[![samuelbasso](https://avatars.githubusercontent.com/u/18683755?v=4)](https://github.com/samuelbasso "samuelbasso (8 commits)")[![wgueds](https://avatars.githubusercontent.com/u/1774717?v=4)](https://github.com/wgueds "wgueds (6 commits)")[![olavocneto](https://avatars.githubusercontent.com/u/568745?v=4)](https://github.com/olavocneto "olavocneto (5 commits)")[![gersonfs](https://avatars.githubusercontent.com/u/293154?v=4)](https://github.com/gersonfs "gersonfs (5 commits)")[![andersonls](https://avatars.githubusercontent.com/u/1561038?v=4)](https://github.com/andersonls "andersonls (3 commits)")[![fonini](https://avatars.githubusercontent.com/u/215885?v=4)](https://github.com/fonini "fonini (3 commits)")[![joaoroyosilva](https://avatars.githubusercontent.com/u/6354258?v=4)](https://github.com/joaoroyosilva "joaoroyosilva (3 commits)")[![tavinus](https://avatars.githubusercontent.com/u/8039413?v=4)](https://github.com/tavinus "tavinus (3 commits)")[![dbemfica](https://avatars.githubusercontent.com/u/13237440?v=4)](https://github.com/dbemfica "dbemfica (2 commits)")

---

Tags

nfephpspedmdfe

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nfephp-org-sped-mdfe/health.svg)

```
[![Health](https://phpackages.com/badges/nfephp-org-sped-mdfe/health.svg)](https://phpackages.com/packages/nfephp-org-sped-mdfe)
```

###  Alternatives

[nfephp-org/sped-cte

API para geração e comunicação da CTe com as SEFAZ autorizadoras.

113227.7k1](/packages/nfephp-org-sped-cte)[nfephp-org/sped-nfse-ginfes

API para geração e comunicação de RPS e NFSe no padão Ginfes.

434.7k](/packages/nfephp-org-sped-nfse-ginfes)

PHPackages © 2026

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