PHP code example of spacedealer / yii2-geonames
1. Go to this page and download the library: Download spacedealer/yii2-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/ */
spacedealer / yii2-geonames example snippets
'geonames' => [
'class' => 'spacedealer\geonames\Geonames',
'username' => 'your_username',
'language' => 'de',
],
$geonames = \Yii::$app->get('geonames')->getClient();
$response = $geonames->postalCodeSearch([
'country' => 'de',
'postalcode' => '10997',
]);
php composer.phar