yii2-extension yii2-novaposhta
Nova Poshta Api
aksi0/yii2-novaposhta
Nova Poshta Api
- Wednesday, June 14, 2017
- by Aksi0
- Repository
- 1 Watchers
- 1 Stars
- 152 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 2 Versions
- 1 % Grown
Nova Poshta
Nova Poshta Api, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist aksi0/yii2-novaposhta "dev-master"
or add, (*4)
"aksi0/yii2-novaposhta": "dev-master"
to the require section of your composer.json
file., (*5)
Usage
- Setup configuration:
'components' => [
'novaPoshta' => [
'class' => 'aksi0\novaposhta\NovaPoshta',
'api_key' => '*specify your api key*'
]
]
- Getting/Search cities
$novaPoshta = Yii::$app->novaPoshta;
// get all cities
$cities = $novaPoshta->getAddress()->getCities();
// or search
$cities = $novaPoshta->getAddress()->getCities('Dnipro');
dev-master
9999999-dev
Nova Poshta Api
Sources
Download
MIT
The Requires
by
Aksi
novaposhta
dev-develop
dev-develop
Nova Poshta Api
Sources
Download
MIT
The Requires
by
Aksi
novaposhta