PHPackages                             enotas/php-client-v2 - 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. enotas/php-client-v2

ActiveLibrary[API Development](/categories/api)

enotas/php-client-v2
====================

eNotas GW API client for PHP v2

v1.0.1(7y ago)151.4k↓75%10[1 PRs](https://github.com/eNotasGW/php-client-v2/pulls)MITPHPPHP &gt;=5.3.0

Since Jan 10Pushed 2y ago6 watchersCompare

[ Source](https://github.com/eNotasGW/php-client-v2)[ Packagist](https://packagist.org/packages/enotas/php-client-v2)[ Docs](https://github.com/eNotasGW/php-client-v2)[ RSS](/packages/enotas-php-client-v2/feed)WikiDiscussions master Synced 1mo ago

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

eNotas GW PHP client v2
=======================

[](#enotas-gw-php-client-v2)

### Instalação

[](#instalação)

```
composer require enotas/php-client-v2
```

### Configuração

[](#configuração)

```
eNotasGW::configure(array(
	'apiKey' => ''
));
```

### Emitindo uma nota fiscal de serviço (NFS-e)

[](#emitindo-uma-nota-fiscal-de-serviço-nfs-e)

Para emitir NFS-e utilize a versão a API v1 (link abaixo)

### Emitindo uma nota fiscal de produto (NF-e)

[](#emitindo-uma-nota-fiscal-de-produto-nf-e)

```
$idEmpresa = '484FB0C5-969E-46AD-A047-8A0DB54667B4';

eNotasGW::$NFeProdutoApi->emitir($idEmpresa, array(
	// identificador único da requisição de emissão de nota fiscal
	// (normalmente será preenchido com o id único do registro no sistema de origem)
	'id' => '5',
	'ambienteEmissao' => 'Homologacao', //'Producao' ou 'Homologacao'
	'consumidorFinal' => true,
	'indicadorPresencaConsumidor' => 'OperacaoPelaInternet',

	'cliente' => array(
		'nome' => 'Nome Cliente',
		'email' => 'cliente@mail.com',
		'cpfCnpj' => '23857396237',
		'endereco' => array(
			'uf' => 'MG',
			'cidade' => 'Belo Horizonte',
			'logradouro' => 'Rua 01',
			'numero' => '112',
			'complemento' => 'AP 402',
			'bairro' => 'Savassi',
			'cep' => '32323111'
		)
	),
	'itens' => array(
		array(
			'cfop' => '5101',
			'codigo' => '1',
			'descricao' => 'Produto XYZ',
			'ncm' => '49019900',
			'quantidade' => 1,
			'unidadeMedida' => 'UN',
			'valorUnitario' => 1.39,
			'impostos' => array(
				'percentualAproximadoTributos' => array(
					'simplificado' => array(
						'percentual' => 31.45
					),
					'fonte' => 'IBPT'
				),
				'icms' => array(
					'situacaoTributaria' => '102',
					'origem' => 0 //0 - Nacional
				),
				'pis' => array(
					'situacaoTributaria' => '08'
				),
				'cofins' => array(
					'situacaoTributaria' => '08'
				)
			)
		)
	),
	'informacoesAdicionais' => 'Documento emitido por ME ou EPP optante pelo Simples Nacional. Não gera direito a crédito fiscal de IPI.'
));
```

### Emitindo uma nota fiscal de consumidor (NFC-e)

[](#emitindo-uma-nota-fiscal-de-consumidor-nfc-e)

```
$idEmpresa = '484FB0C5-969E-46AD-A047-8A0DB54667B4';

$result = eNotasGW::$NFeConsumidorApi->emitir($idEmpresa, array(
	// identificador único da requisição de emissão de nota fiscal
	// (normalmente será preenchido com o id único do registro no sistema de origem)
	'id' => '5',
	'ambienteEmissao' => 'Homologacao', //'Producao' ou 'Homologacao'
	'pedido' => array(
		'presencaConsumidor' => 'OperacaoPresencial',
		'pagamento' => array(
			'tipo' => 'PagamentoAVista',
			'formas' => array(
				array(
					'tipo' => 'Dinheiro',
					'valor' => 0.01
				)
			)
		)
	),

	'itens' => array(
		array(
			'cfop' => '5101',
			'codigo' => '1',
			'descricao' => 'Produto XYZ',
			'ncm' => '49019900',
			'quantidade' => 1,
			'unidadeMedida' => 'UN',
			'valorUnitario' => 1.39,
			'impostos' => array(
				'percentualAproximadoTributos' => array(
					'simplificado' => array(
						'percentual' => 31.45
					),
					'fonte' => 'IBPT'
				),
				'icms' => array(
					'situacaoTributaria' => '102',
					'origem' => 0 //0 - Nacional
				)
			)
		)
	),
	'informacoesAdicionais' => 'Documento emitido por ME ou EPP optante pelo Simples Nacional. Não gera direito a crédito fiscal de IPI.'
));
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.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 ~0 days

Total

2

Last Release

2685d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/241ef1c402955b81d4aef541159d3730e35ee96a46ed73542c20afeb55eb9ff0?d=identicon)[eNotas](/maintainers/eNotas)

---

Top Contributors

[![jonathansouza](https://avatars.githubusercontent.com/u/13571626?v=4)](https://github.com/jonathansouza "jonathansouza (48 commits)")[![EricRibeiro](https://avatars.githubusercontent.com/u/21243061?v=4)](https://github.com/EricRibeiro "EricRibeiro (3 commits)")[![otavioreis](https://avatars.githubusercontent.com/u/12715245?v=4)](https://github.com/otavioreis "otavioreis (3 commits)")[![thiagoreis](https://avatars.githubusercontent.com/u/101100?v=4)](https://github.com/thiagoreis "thiagoreis (2 commits)")[![ssatorres](https://avatars.githubusercontent.com/u/1444980?v=4)](https://github.com/ssatorres "ssatorres (1 commits)")

---

Tags

eNotasNF-eNFC-e

### Embed Badge

![Health badge](/badges/enotas-php-client-v2/health.svg)

```
[![Health](https://phpackages.com/badges/enotas-php-client-v2/health.svg)](https://phpackages.com/packages/enotas-php-client-v2)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23914.2M16](/packages/hubspot-api-client)[lstrojny/fxmlrpc

Fast and tiny XML/RPC client with bridges for various HTTP clients

1425.4M30](/packages/lstrojny-fxmlrpc)

PHPackages © 2026

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