2017 © Pedro Peláez
 

library ktp

HTTP client library for finding 2014 Indonesian presidential election voter's data based on it's NIK

image

risan/ktp

HTTP client library for finding 2014 Indonesian presidential election voter's data based on it's NIK

  • Wednesday, March 9, 2016
  • by risan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

KTP HTTP Client

Build Status HHVM Status StyleCI Scrutinizer Code Quality Code Coverage SensioLabs Insight Latest Stable Version License, (*1)

PHP HTTP client library for finding 2014 Indonesian presidential election voter's data based on it's NIK. The data is directly scraped from KPU website website., (*2)

Table of Contents

Dependencies

This package powered by the following awesome libraries:, (*3)

Installation

The recommended way to install this package is through Composer. With the Composer installed on your machine, simply run the following command inside your project directory:, (*4)

composer require risan/ktp

You may also add risan\ktp package directly into your composer.json file:, (*5)

"require": {
  "risan/ktp": "~1.1"
}

Once your composer.json file is updated, run the following command to install it:, (*6)

composer install

How to Use

Here's some example about how to use this package:, (*7)

// Include composer autoloder file.
require 'vendor/autoload.php';

// Create a new instance Ktp\Finder.
$ktp = new Ktp\Finder();

// Find a voter's data by it's NIK.
$data = $ktp->findByNik(1122330108901234);

// Voter's data is not found.
if (is_null($data)) {
    die('Not found!');
}

print_r($data);

If the given NIK is not found, the findByNik() method will return a null value., (*8)

If the given NIK is found, the findByNik() will return an array that holds the voter's data. The returned array will have the following structure:, (*9)

Array
(
    [nik] => 1122330108901234
    [name] => RISAN BAGJA
    [jenis_kelamin] => LAKI-LAKI
    [kelurahan] => KAMPUNG BARU
    [kecamatan] => BANDA
    [kabupaten_kota] => MALUKU TENGAH
    [provinsi] => MALUKU UTARA
)

The Versions

09/03 2016

dev-master

9999999-dev https://github.com/risan/ktp

HTTP client library for finding 2014 Indonesian presidential election voter's data based on it's NIK

  Sources   Download

MIT

The Requires

 

The Development Requires

nik ktp kpu pemilu

09/03 2016

v1.1.1

1.1.1.0 https://github.com/risan/ktp

HTTP client library for finding 2014 Indonesian presidential election voter's data based on it's NIK

  Sources   Download

MIT

The Requires

 

The Development Requires

nik ktp kpu pemilu

09/03 2016

v1.1.0

1.1.0.0 https://github.com/risan/ktp

HTTP client library for finding 2014 Indonesian presidential election voter's data based on it's NIK

  Sources   Download

MIT

The Requires

 

The Development Requires

nik ktp kpu pemilu

03/03 2016

v1.0.2

1.0.2.0 https://github.com/risan/ktp

HTTP client library for finding 2014 Indonesian presidential election voter's data based on it's NIK

  Sources   Download

MIT

The Requires

 

The Development Requires

nik ktp kpu pemilu

03/03 2016

v1.0.1

1.0.1.0 https://github.com/risan/ktp

HTTP client library for finding 2014 Indonesian presidential election voter's data based on it's NIK

  Sources   Download

MIT

The Requires

 

The Development Requires

nik ktp kpu pemilu

03/03 2016

v1.0.0

1.0.0.0 https://github.com/risan/ktp

HTTP client library for finding 2014 Indonesian presidential election voter's data based on it's NIK

  Sources   Download

MIT

The Requires

 

The Development Requires

nik ktp kpu pemilu