Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill li committed Apr 22, 2018
1 parent 6f15519 commit bbaade9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

```bash

composer require ofcold/component-identity-card
composer require ofcold/identity-card
```


Expand All @@ -35,7 +35,7 @@
```php

try {
Ofcold\Component\IdentityCard\IdentityCard::make('32010619831029081');
Ofcold\IdentityCard\IdentityCard::make('32010619831029081');

return true;
}
Expand All @@ -56,9 +56,9 @@
```php

try {
$idCard = Ofcold\Component\IdentityCard\IdentityCard::make('320106198310290811');
$idCard = Ofcold\IdentityCard\IdentityCard::make('320106198310290811');
// Use locale, Current supported zh-cn,en
// $idCard = Ofcold\Component\IdentityCard\IdentityCard::make('320106198310290811', 'zh-cn');
// $idCard = Ofcold\IdentityCard\IdentityCard::make('320106198310290811', 'zh-cn');
$area = $idCard->getArea();
$gender = $idCard->getGender();
$birthday = $idCard->getBirthday();
Expand Down
8 changes: 4 additions & 4 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ China (region) citizen ID card tool

```bash

composer require ofcold/component-identity-card
composer require ofcold/identity-card
```


Expand All @@ -23,7 +23,7 @@ A component based on People's Republic of China citizen ID card to obtain the us
```php

try {
$idCard = Ofcold\Component\IdentityCard\IdentityCard::make('32010619831029081');
$idCard = Ofcold\IdentityCard\IdentityCard::make('32010619831029081');
print_r($idCard->toArray());
}
catch (\Exception $e)
Expand All @@ -43,9 +43,9 @@ A component based on People's Republic of China citizen ID card to obtain the us
```php

try {
$idCard = Ofcold\Component\IdentityCard\IdentityCard::make('320106198310290811', 'en');
$idCard = Ofcold\IdentityCard\IdentityCard::make('320106198310290811', 'en');
// Use locale, Current supported zh-cn,en
// $idCard = Ofcold\Component\IdentityCard\IdentityCard::make('320106198310290811', 'zh-cn');
// $idCard = Ofcold\IdentityCard\IdentityCard::make('320106198310290811', 'zh-cn');
$area = $idCard->getArea();
$gender = $idCard->getGender();
$birthday = $idCard->getBirthday();
Expand Down

0 comments on commit bbaade9

Please sign in to comment.