Skip to content

Commit caccd90

Browse files
committed
chore: update README
1 parent e09a42e commit caccd90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ composer require irsyadulibad/nik-validator
1010
* Example
1111
```php
1212
<?php
13+
use Irsyadulibad\NIKValidator\Generator;
1314
use Irsyadulibad\NIKValidator\Validator;
1415

15-
$parsed = Validator::set('35090xxxxxxxxxx')->parse();
16+
$nik = (new Generator())->generate();
17+
$parsed = Validator::set($nik)->parse();
1618

1719
if($parsed->valid) {
1820
var_dump($parsed);

0 commit comments

Comments
 (0)