PHPackages                             kryptonpay/nfse-bh-sdk-new - 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. kryptonpay/nfse-bh-sdk-new

ActiveLibrary[API Development](/categories/api)

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

Biblioteca para geração de NFS-E de Belo Horizonte

0.0.2(2y ago)194MITPHPPHP &gt;=7.0

Since May 10Pushed 2y agoCompare

[ Source](https://github.com/KryptonPay/nfse-bh-sdk-new)[ Packagist](https://packagist.org/packages/kryptonpay/nfse-bh-sdk-new)[ Docs](https://www.linkedin.com/in/yago-fernandes)[ RSS](/packages/kryptonpay-nfse-bh-sdk-new/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (4)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

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

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

Total

2

Last Release

1048d ago

### Community

Maintainers

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

---

Top Contributors

[![yaguin](https://avatars.githubusercontent.com/u/56457316?v=4)](https://github.com/yaguin "yaguin (14 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)")[![victorsousao](https://avatars.githubusercontent.com/u/19959921?v=4)](https://github.com/victorsousao "victorsousao (3 commits)")

---

Tags

nfselibnfsebh

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)[fschmtt/keycloak-rest-api-client-php

PHP client to interact with Keycloak's Admin REST API.

4684.7k2](/packages/fschmtt-keycloak-rest-api-client-php)

PHPackages © 2026

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