PHP code example of yaroslawww / laravel-geonames
1. Go to this page and download the library: Download yaroslawww/laravel-geonames library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yaroslawww / laravel-geonames example snippets
bash
php artisan vendor:publish --provider="LaraGeoData\ServiceProvider" --tag="config"
shell
php artisan geonames:download:truncate
shell
php artisan geonames:make:migration geonames
# or
php artisan geonames:make:migration geonames --suffix=gb
php artisan geonames:make:migration postalcodes --suffix=gb
php artisan geonames:make:migration admin_areas_view --suffix=gb --replaces=level:1
php artisan geonames:make:migration admin_areas_view --suffix=gb --replaces=level:2
php artisan geonames:make:migration admin_areas_view --suffix=gb --replaces=level:3