PHP code example of michaeldrennen / geonames

1. Go to this page and download the library: Download michaeldrennen/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/ */

    

michaeldrennen / geonames example snippets


MichaelDrennen\Geonames\GeonamesServiceProvider::class,

php artisan geonames:install --country=US --country=CA --country=MX --language=en

php artisan geonames:install

$schedule->command('geonames:update')->dailyAt('3:00');

Schema::defaultStringLength(191);

php artisan migrate

php artisan vendor:publish --provider="MichaelDrennen\Geonames\GeonamesServiceProvider"
bash
php artisan geonames:add --country=BR
bash
php artisan geonames:add --country=BR --country=AR
bash
    php artisan geonames:install
    
bash
    php artisan geonames:install --country=US --language=en
    
bash
    php artisan geonames:countryinfo
    
bash
    php artisan geonames:countryinfo --force