projek-xyz / id-nik
Indonesia NIK (Nomor Induk Kependudukan)
Fund package maintenance!
feryardiant
Patreon
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ~6.0
- symfony/css-selector: ~3.0
- symfony/dom-crawler: ~3.0
Requires (Dev)
README
Install
Via Composer
$ composer require projek-xyz/id-nik --prefer-dist
TO-DO
- Make it configuratble,
- write Documentation,
- Write Unit test,
- Any idea? PR are very welcome 😉
Demo
End-point: idnik.projek.xyz?nik=
Note:
- You'll got
200 OK
with{ name: 'Your Name', ... }
response if your nik is found. - You'll got
500 Server error
with{ message: <server-error-message> }
response if some thing bad happen. - You'll got
404 Not found
with{ message: 'Not found' }
response if your nik is not found. - You'll got
406 Not Acceptable
with{ message: <client-error-message> }
response if you:- You're not access it via AJAX,
- Your
Accept
header doesn't haveapplication/json
, - Don't have
?nik=<your-nik>
query string, <your-nik>
lenght is not 16 characters,<your-nik>
is not numeric,
Usage
SOON
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Credits
- KPU for the data source.
Disclaimer
- We send and parse each request to its source.
- We DON'T SERVE ANY response from its source.
License
The MIT License (MIT). Please see License File for more information.