Generate fake nik with valid data, and can be controlled.
using composer
composer require sonypradana/fake-nik --dev
using helpers
fakeNIK()->generate();
// 3212135412780001 (16 digit random nik)
fakeNIK()
->jenisKelamin(JenisKelamin::Laki)
->provinsi(Provinsi::JAWA_TENGAH)
->usia(17)
->generate();
// 3324140501060002 (controll your faker)
fakeNIK()
->jenisKelamin(JenisKelamin::LAKI)
->date(new \DateTime('12-12-2012'))
->generate();
// 3424141212120018 (controll your faker)
- add more tests
- support generating 'kabupaten/kota' levels.
- support generating 'kelurahan' levels.
- type hityng 'kabupaten/kota'.
- type hityng 'kelurahan'.
fake-nik
is an open-sourced software licensed under the MIT license.