2017 © Pedro Peláez
 

yii2-extension yii2-geonames

Yii2 extension for geonames.org webservice api

image

spacedealer/yii2-geonames

Yii2 extension for geonames.org webservice api

  • Monday, May 4, 2015
  • by dirx
  • Repository
  • 4 Watchers
  • 1 Stars
  • 297 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Geonames API client extension for Yii2

Attention: Please do not use in production environments. It‘s WIP., (*1)

This is a Geonames API client extension for the Yii2 Framework. It wraps around the geonames-api php library., (*2)

Build Status SensioLabsInsight Dependency Status, (*3)

Requirements

  • php >= 5.4
  • spacedealer/geonames-api 0.2

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

php composer.phar require --prefer-dist spacedealer/yii2-geonames "*"

or add, (*6)

"spacedealer/yii2-geonames": "*"

to the require section of your composer.json file., (*7)

Usage

Once the extension is installed, simply modify your application components configuration as follows:, (*8)

'geonames' => [
    'class' => 'spacedealer\geonames\Geonames',
    'username' => 'your_username',
    'language' => 'de',
],

Use within your Yii2 application logic:, (*9)

$geonames = \Yii::$app->get('geonames')->getClient();
$response = $geonames->postalCodeSearch([
    'country' => 'de',
    'postalcode' => '10997',
]);

Todos

  • add unit tests

Resources

The Versions

04/05 2015

dev-master

9999999-dev https://github.com/spacedealer/yii2-geonames

Yii2 extension for geonames.org webservice api

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

api extension rest yii2 client guzzle geonames

04/02 2015

0.2.0

0.2.0.0 https://github.com/spacedealer/yii2-geonames

Yii2 extension for geonames.org webservice api

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

api extension rest yii2 client guzzle geonames

03/12 2014

0.1

0.1.0.0 https://github.com/spacedealer/yii2-geonames

Yii2 extension for geonames.org webservice api

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

api extension rest yii2 client guzzle geonames