2017 © Pedro Peláez
 

yii2-extension yii2-here

Yii2 extension here.com REST api

image

spacedealer/yii2-here

Yii2 extension here.com REST api

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

The README.md

Here REST APIs client extension for Yii2

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

This is a Here APIs client extension for the Yii2 Framework. It wraps around the here-api php library., (*2)

Please see here-api php library readme for currently supported APIs., (*3)

Build Status SensioLabsInsight Dependency Status, (*4)

Requirements

  • php >= 5.4
  • spacedealer/here-api 0.1

Installation

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

Either run, (*6)

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

or add, (*7)

"spacedealer/yii2-here": "*"

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

Usage

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

'here' => [
    'class' => 'spacedealer\here\Here',
    'appCode' => 'your_app_code',
    'appId' => 'your_app_id',
],

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

$geocoder = \Yii::$app->get('here')->getGeoCoder();
$response = $geocoder->geocode([
   'city' => 'Berlin',
   'postalCode' => '10997',
   'street' => 'Schlessische Str.',
   'housenumber' => '28',
]);
$displayPosition = $response->getPath('Response/View/0/Result/0/Location/DisplayPosition');

Resources

The Versions

04/05 2015

dev-master

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

Yii2 extension here.com REST api

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Trung Nguyen

api extension rest yii2 client guzzle here

04/02 2015

0.1.0

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

Yii2 extension here.com REST api

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Trung Nguyen

api extension rest yii2 client guzzle here