projek-xyz/id-nik

This package is abandoned and no longer maintained. No replacement package was suggested.

Indonesia NIK (Nomor Induk Kependudukan)

v0.1.4 2016-02-16 07:42 UTC

This package is auto-updated.

Last update: 2024-05-23 09:30:37 UTC


README

LICENSE VERSION

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 have application/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.