2017 © Pedro Peláez
 

library locanesia

Indonesia Province, City, Sub District, Villages. Data From nomor.net

image

rezzakurniawan/locanesia

Indonesia Province, City, Sub District, Villages. Data From nomor.net

  • Tuesday, March 27, 2018
  • by rezzakurniawan
  • Repository
  • 4 Watchers
  • 5 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Locanesia

About

Laravel Package to populate and searching indonesia locations. From Provinces To Villages. Data Scraped from http://www.nomor.net/, (*1)

Demo

IMAGE ALT TEXT HERE, (*2)

Requirements

Installation Instructions

  1. From your projects root folder in terminal run:, (*3)

        composer require rezzakurniawan/locanesia
    
  2. Register the package, (*4)

    • Laravel 5.5 and up Uses package auto discovery feature, no need to edit the config/app.php file., (*5)

    • Laravel 5.4 and below Register the package with laravel in config/app.php under providers and aliases with the following:, (*6)

        'providers' => [
        ...
            rezzakurniawan\Locanesia\LocanesiaServiceProvider::class,
        ];
    
        'aliases' => [
        ...
           'Locanesia' => rezzakurniawan\Locanesia\LocanesiaFacade::class,
        ];
    
  3. Migrate Database & Seed Database, (*7)

        php artisan migrate && php artisan db:seed --class=rezzakurniawan\\Locanesia\\Database\\Seed\\LocationSeeder
    

Basic Usage

variable term can part of full address, like "Buah Batu Bandung"., (*8)

always call locanesia, use it : ``` php use rezzakurniawan\Locanesia\Locanesia;, (*9)


1. For Full Text Search ```php /** * Full Text Search Location * * @param String $term Village, Postcode, Province, City Or combine * @param String $response json|array * @return void */ Locanesia::search($term, $response);
  1. Get All Province
    /**
     * Get All Provinces
     *
     * @param String $response json|array
     * @return void
     */
    Locanesia::getProvinces($response);
  1. Get All Cities By Provinces
    /**
     * Get All Provinces
     *
     * @param String $provinces Province Name
     * @param String $response json|array
     * @return void
     */
    Locanesia::getCities($provinces, $response);
  1. Get Detail Location By Postcode
    /**
     * Get Detail Location By Postcode
     *
     * @param String $term postcode
     * @param String $response json|array
     * @return void
     */
    Locanesia::getLocationByPostCode($term, $type);

License

Laravel Locanesia is Licensed under MIT. Enjoy!, (*10)

The Versions

27/03 2018

dev-master

9999999-dev

Indonesia Province, City, Sub District, Villages. Data From nomor.net

  Sources   Download

MIT

The Requires

  • php ^7.0

 

by Rezza Kurniawan

27/03 2018

v0.1.2

0.1.2.0

Indonesia Province, City, Sub District, Villages. Data From nomor.net

  Sources   Download

MIT

The Requires

  • php ^7.0

 

by Rezza Kurniawan

27/03 2018

v0.1.1

0.1.1.0

Indonesia Province, City, Sub District, Villages. Data From nomor.net

  Sources   Download

MIT

The Requires

  • php ^7.0

 

by Rezza Kurniawan

23/03 2018

v0.1.0

0.1.0.0

Indonesia Province, City, Sub District, Villages. Data From nomor.net

  Sources   Download

MIT

The Requires

  • php ^7.0

 

by Rezza Kurniawan