fruitware / yandex-geocoder-bundle
Symfony2 bundle for interactions with geo-coding Yandex.Maps
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.3.9
- symfony/config: ^2.3.9 || ^3.0
- symfony/dependency-injection: ^2.3.3 || ^3.0
- symfony/http-kernel: ^2.3 || ^3.0
- yandex/geo: ^1.1.2
Requires (Dev)
- phpunit/phpunit: ^4.8
- sllh/php-cs-fixer-styleci-bridge: ^2.0
- symfony/phpunit-bridge: ^2.7 || ^3.0
- symfony/yaml: ^2.3 || ^3.0
This package is auto-updated.
Last update: 2024-10-15 22:22:05 UTC
README
Symfony2 bundle for interactions with geo-coding Yandex.Maps
Prerequisites
This version of the bundle requires Symfony 2.3+ or Symfony 3.0+.
Installation
Installation is a quick 4 step process:
- Download FruitwareYandexGeocoderBundle using composer
- Enable the Bundle
- Configure the FruitwareYandexGeocoderBundle
- Usage
Step 1: Download the bundle
Require the library in your composer.json
file:
$ composer require fruitware/yandex-geocoder-bundle
Step 2: Register the bundle
Then, add the bundle in your AppKernel
:
<?php // app/AppKernel.php public function registerBundles() { $bundles = [ // ... new Fruitware\YandexGeocoderBundle\FruitwareYandexGeocoderBundle(), ]; }
Step 3: Configure the FruitwareYandexGeocoderBundle
The bundle comes with a sensible default configuration, which is listed below.
# app/config/config.yml fruitware_yandex_geocoder: key: ~ version: 1.x # default lang: ru-RU # values:['ru-RU', 'uk-UA', 'be-BY', 'en-US', 'en-BR', 'tr-TR'] kind: ~ # default, values: ['house', 'street', 'metro', 'district', 'locality']
Contribution
Any question or feedback? Open an issue and I will try to reply quickly.
A feature is missing here? Feel free to create a pull request to solve it!
I hope this has been useful and has helped you. If so, share it and recommend it! :)
License
This bundle is available under the MIT license.