PHPackages                             kryptonpay/nfse-bh-sdk - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kryptonpay/nfse-bh-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kryptonpay/nfse-bh-sdk
======================

Biblioteca para geração de NFSE de Belo Horizonte

0.7(5mo ago)084MITPHPPHP ^8.1

Since Apr 4Pushed 5mo agoCompare

[ Source](https://github.com/KryptonPay/nfse-bh-sdk)[ Packagist](https://packagist.org/packages/kryptonpay/nfse-bh-sdk)[ Docs](https://kryptontech.com.br)[ RSS](/packages/kryptonpay-nfse-bh-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (8)Used By (0)

Biblioteca para emissão de NFSE BH
==================================

[](#biblioteca-para-emissão-de-nfse-bh)

API de emissão, consulta e cancelamento de notas fiscais de serviço via webservice da prefeitura de Belo Horizonte - MG

### Pré-requisitos

[](#pré-requisitos)

O que você precisa para instalar o software e como instalá-lo

Mínimo `PHP 7.2`

### Instalando

[](#instalando)

Efetue download utilizando composer

`composer require yaguin/nfse-bh-sdk`

Começando
---------

[](#começando)

- Siga os passos abaixo para consumir corretamente a biblioteca

1 - Adicione seu certificado digital .PFX no seguinte diretório

`storage/certificates/{{56142462000106}}/certificate.pfx`

"56142462000106" é o CNPJ da empresa.

2 - Sempre que desejar usar algum ENDPOINT implementado, passe sempre os parâmetros de configuração.

`tests/systemSettings`

```
    use Exception;
    use NFse\Config\Boot;
    use NFse\Helpers\Utils;
    use NFse\Models\Settings;

    try {
        //ambiente
        $settings = new Settings();
        $settings->environment = 'homologacao';

        //Emitente
        $settings->issuer->name = 'LINK SERVICOS DE CERTIFICACAO DIGITAL LTDA';
        $settings->issuer->cnpj = 11508222000136;
        $settings->issuer->imun = 2530360019;
        $settings->issuer->codMun = 3106200;

        //certificado digital
        $settings->certificate->folder = __DIR__ . '/../storage/certificates/' . $settings->issuer->cnpj . '/';
        $settings->certificate->certFile = 'certificate.pfx';
        $settings->certificate->mixedKey = 'mixedKey.pem';
        $settings->certificate->privateKey = 'privateKey.pem';
        $settings->certificate->publicKey = 'publicKey.pem';
        $settings->certificate->password = '215424958751';
        $settings->certificate->noValidate = true;

        //dev
        if ($settings->environment == 'homologacao') {
            Utils::xdebugMode();
        }

        //efetua o boot no lib
        $system = new Boot($settings);
        $system->init();

    } catch (Exception $e) {
        throw $e;
    }
```

Execução dos testes
-------------------

[](#execução-dos-testes)

Siga os casos de testes dentro da pasta "tests"

Autor
-----

[](#autor)

- **Yago Fernandes** - [Linkedin](https://www.linkedin.com/in/yago-fernandes)

Contribuintes
-------------

[](#contribuintes)

- **Wander Alves** - [Linkedin](https://www.linkedin.com/in/wander-alves-935b6314b)

Licença
-------

[](#licença)

Este projeto está licenciado sob a licença MIT - consulte o arquivo \[LICENSE.md\] (LICENSE.md) para obter detalhes

Agradecimentos
--------------

[](#agradecimentos)

- [Krypton Tech](https://kryptontech.com.br/) pelo apoio ao me conceder tempo e recursos para a implementação desta biblioteca.

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance75

Regular maintenance activity

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.2% 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 ~160 days

Recently: every ~5 days

Total

7

Last Release

169d ago

PHP version history (2 changes)0.1PHP &gt;=7.0

0.3PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![victorsousao](https://avatars.githubusercontent.com/u/19959921?v=4)](https://github.com/victorsousao "victorsousao (13 commits)")[![wsilva94](https://avatars.githubusercontent.com/u/30603134?v=4)](https://github.com/wsilva94 "wsilva94 (8 commits)")[![josefcts](https://avatars.githubusercontent.com/u/81540355?v=4)](https://github.com/josefcts "josefcts (3 commits)")

---

Tags

nfselibnfsebh

### Embed Badge

![Health badge](/badges/kryptonpay-nfse-bh-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/kryptonpay-nfse-bh-sdk/health.svg)](https://phpackages.com/packages/kryptonpay-nfse-bh-sdk)
```

###  Alternatives

[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k134](/packages/symfony-ai-platform)[symfony/ai-agent

PHP library for building agentic applications.

30536.7k44](/packages/symfony-ai-agent)[morrislaptop/laravel-popo-caster

Automatically cast JSON columns to rich PHP objects in Laravel using Symfony's Serializer

27643.8k](/packages/morrislaptop-laravel-popo-caster)

PHPackages © 2026

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