Skip to content

Commit

Permalink
bump new version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tonicospinelli committed Dec 9, 2016
1 parent 09d8d8b commit 9871ee8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
Change Log
==========

## [v0.6.0](https://github.com/brazanation/documents/tree/v0.6.0) (2016-12-09)
[Full Changelog](https://github.com/brazanation/documents/compare/v0.5.0...v0.6.0)

**Implemented enhancements:**

- create EmissionType and fix digit calculator [#28](https://github.com/brazanation/documents/pull/28) ([tonicospinelli](https://github.com/tonicospinelli))

**Fixed bugs:**

**Closed issues:**

- wrong digit calculator [\#26](https://github.com/brazanation/documents/issues/26)

**Merged pull requests:**

- create EmissionType and fix digit calculator [#28](https://github.com/brazanation/documents/pull/28)


## [v0.5.0](https://github.com/brazanation/documents/tree/v0.5.0) (2016-11-28)
[Full Changelog](https://github.com/brazanation/documents/compare/v0.4.0...v0.5.0)

Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Install the library using [composer][1]. Add the following to your `composer.jso
```json
{
"require": {
"brazanation/documents": "0.5.*"
"brazanation/documents": "0.6.*"
}
}
```
Expand All @@ -30,7 +30,7 @@ $ composer.phar install
or

```sh
$ composer require brazanation/documents 0.5.*
$ composer require brazanation/documents 0.6.*
```

### CPF (cadastro de pessoas físicas)
Expand Down Expand Up @@ -100,9 +100,9 @@ use Brazanation\Documents\Sped\NFe;
use Brazanation\Documents\Exception\InvalidDocument as InvalidDocumentException;

try {
$accessKey = new NFe('52060433009911002506550120000007800267301615');
echo $accessKey; // prints 52060433009911002506550120000007800267301615
echo $accessKey->format(); // prints 5206 0433 0099 1100 2506 5501 2000 0007 8002 6730 1615
$accessKey = new NFe('52060433009911002506550120000007801267301613');
echo $accessKey; // prints 52060433009911002506550120000007801267301613
echo $accessKey->format(); // prints 5206 0433 0099 1100 2506 5501 2000 0007 8012 6730 1613
catch (InvalidDocumentException $e){
echo $e->getMessage();
}
Expand All @@ -111,15 +111,16 @@ or generate your number

```php
try {
$accessKey = NFe::generate(
$nfeKey = NFe::generate(
52,
\DateTime::createFromFormat('ym', '0604'),
$generatedAt,
new Cnpj('33009911002506'),
12,
780,
EmissionType::normal(),
26730161
);
echo $accessKey; // prints 52060433009911002506550120000007800267301615
echo $accessKey; // prints 52060433009911002506550120000007801267301613
catch (InvalidDocumentException $e){
echo $e->getMessage();
}
Expand Down

0 comments on commit 9871ee8

Please sign in to comment.