Skip to content

Commit

Permalink
Further improvement of composer file and bug correction in example
Browse files Browse the repository at this point in the history
  • Loading branch information
EricRibeiro committed Jan 10, 2019
1 parent 3c8f596 commit 4c69e27
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# eNotas GW PHP client v2


### Instalação

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

### Configuração

```php
eNotasGW::configure(array(
'apiKey' => '<sua api key>'
Expand Down
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "enotas/php-client-v2",
"description": "eNotas GW API client for PHP v2",
"keywords": ["eNotas", "NF-e", "NFC-e"],
"homepage": "https://github.com/eNotasGW/php-client-v2",
"type": "library",
"license": "MIT",
"authors": [
Expand All @@ -11,5 +13,10 @@
],
"require": {
"php": ">=5.3.0"
},
"autoload": {
"psr-4": {
"eNotasGW\\Api\\": "src/"
}
}
}
5 changes: 2 additions & 3 deletions examples/empresa/nfs-e/inserirAtualizar.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ class tipoAssinaturaDigital {
'bairro' => 'Savassi',
'cep' => '32323111'
),

'emissaNFeServico' => {
'emissaNFeServico' => array(
'regimeEspecialTributacao' => '0', //A lista de valores possíveis deve ser obtida pela api de caraterísticas da prefeitura
'codigoServicoMunicipal' => '181309901', //código do serviço municipal padrão para emissão de NFS-e
'descricaoServico' => 'SERVICO DE SERIGRAFIA / SILK-SCREEN', //Descrição do serviço municipal padrão para emissão de NFS-e (utilizado apenas na impressão da NFS-e)
Expand All @@ -63,7 +62,7 @@ class tipoAssinaturaDigital {
'serieNFe' => '2',
'sequencialLoteNFe' => 1
)
}
)
);

if($caracteristicasPrefeitura->usaCNAE) {
Expand Down

0 comments on commit 4c69e27

Please sign in to comment.