2017 © Pedro Peláez
 

library indodata

Data Provinsi-Kota-Kecamatan-Kabupaten se Indonesia memakai PHP

image

buchin/indodata

Data Provinsi-Kota-Kecamatan-Kabupaten se Indonesia memakai PHP

  • Sunday, December 4, 2016
  • by buchin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Tentang Indo Data

Database apa saja yang berhubungan dengan indonesia. Memakai Eloquent Model sehingga mendukung relationship Has Many dan Belongs to., (*1)

Instalasi dengan Composer

composer require buchin/indodata

Contoh Penggunaan

use Buchin\Indodata\Province;
use Buchin\Indodata\City;
use Buchin\Indodata\District;
use Buchin\Indodata\Village;

// Initialize Capsule. Required to initialize DB connection.
$capsule = new Capsule;


// Relationship: Belongs To
// Get village
$village = Village::first();

// Get district
$district = $village->district;

// Get City
$city = $district->city;

// Get Province
$province = $city->province();

// Chainable
$province = $village->district->city->province;

The Versions

04/12 2016

dev-master

9999999-dev

Data Provinsi-Kota-Kecamatan-Kabupaten se Indonesia memakai PHP

  Sources   Download

Halal

The Requires

 

The Development Requires

by Mochammad Masbuchin