2017 © Pedro Peláez
 

library kewilayahan

API Data Wilayah Provinsi, Kota/Kab, Kecamatan, Kel/Desa di Indonesia dengan data dari BPS Tahun 2013.

image

nurmanhabib/kewilayahan

API Data Wilayah Provinsi, Kota/Kab, Kecamatan, Kel/Desa di Indonesia dengan data dari BPS Tahun 2013.

  • Wednesday, March 16, 2016
  • by nurmanhabib
  • Repository
  • 1 Watchers
  • 0 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Kewilayahan Indonesia API

Install

  • Instalasi dengan Composer
    $ composer require nurmanhabib/kewilayahan
    
  • Tambahkan Nurmanhabib\Kewilayahan\KewilayahanServiceProvider::class pada config/app.php
    'providers' => [
        ...
    Nurmanhabib\Kewilayahan\KewilayahanServiceProvider::class, ]
  • Copy file config.php ke config/kewilayahan.php
    $ php artisan vendor:publish --provider="Nurmanhabib\Kewilayahan\KewilayahanServiceProvider"
    
  • Create table dengan migration
    $ php artisan migrate
    
  • Insert data seeder kewilayahan
    $ php artisan db:seed --class="KewilayahanSeeder"
    

Penggunaan

$kewilayahan = app('kewilayahan');
$kewilayahan->setQuery($request->all());
$kewilayahan->setOutput('api');

$kewilayahan->setOutput(function ($data) use ($request) {
    $selected = ['selected' => 'tes'];

    return array_merge($data, [$selected]);
});

return $kewilayahan->load();

License

Apache, (*1)

The Versions

16/03 2016

dev-master

9999999-dev

API Data Wilayah Provinsi, Kota/Kab, Kecamatan, Kel/Desa di Indonesia dengan data dari BPS Tahun 2013.

  Sources   Download

MIT

The Requires

 

16/03 2016

1.2.0

1.2.0.0

API Data Wilayah Provinsi, Kota/Kab, Kecamatan, Kel/Desa di Indonesia dengan data dari BPS Tahun 2013.

  Sources   Download

MIT

The Requires

 

15/03 2016

1.1.0

1.1.0.0

API Data Wilayah Provinsi, Kota/Kab, Kecamatan, Kel/Desa di Indonesia dengan data dari BPS Tahun 2013.

  Sources   Download

MIT

The Requires

 

15/03 2016

1.0.0

1.0.0.0

API Data Wilayah Provinsi, Kota/Kab, Kecamatan, Kel/Desa di Indonesia dengan data dari BPS Tahun 2013.

  Sources   Download

MIT

The Requires