2017 © Pedro Peláez
 

symfony-bundle geo-bundle

Symfony WXRGeoBundle

image

wxr/geo-bundle

Symfony WXRGeoBundle

  • Monday, December 9, 2013
  • by Ascarius
  • Repository
  • 1 Watchers
  • 1 Stars
  • 56 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

WXRGeoBundle

Installation

Composer

``` json "wxr/geo-bundle": "dev-master", (*1)


`$ composer update` ### AppKernel (1) ``` php new Sonata\EasyExtendsBundle\SonataEasyExtendsBundle(), new WXR\CommonBundle\WXRCommonBundle(), new WXR\GeoBundle\WXRGeoBundle(),

SonataEasyExtendsBundle

$ php app/console sonata:easy-extends:generate WXRGeoBundle --dest=src, (*2)

AppKernel (2)

``` php new Application\WXR\GeoBundle\ApplicationWXRGeoBundle(),, (*3)



### Routing (optional) ``` yaml # app/config/routing.yml wxr_geo: resource: "@WXRGeoBundle/Resources/config/routing.yml" prefix: /geo

Useful for autocompletion., (*4)

Google Map API (optional)

Override SonataAdminBundle::standard_layout.html.twig to import Google Map API., (*5)

``` html , (*6)


Latitude and longitude will be automatically retrieved trough [geocoding.js](https://github.com/Ascarius/WXRGeoBundle/blob/master/Resources/public/js/geocoding.js). - [Google Geocoding API documenation](https://developers.google.com/maps/documentation/geocoding/index) Configuration ------------- WXRGeoBundle doesn't require any configuration. ### Default configuration ``` yaml wxr_geo: translation_domain: WXRGeoBundle country: manager: wxr_geo.country.manager.default admin: class: WXR\GeoBundle\Admin\Entity\CountryAdmin controller: SonataAdminBundle:CRUD region: manager: wxr_geo.region.manager.default admin: class: WXR\GeoBundle\Admin\Entity\RegionAdmin controller: SonataAdminBundle:CRUD city: manager: wxr_geo.city.manager.default admin: class: WXR\GeoBundle\Admin\Entity\CityAdmin controller: SonataAdminBundle:CRUD address: manager: wxr_geo.address.manager.default admin: class: WXR\GeoBundle\Admin\Entity\AddressAdmin controller: SonataAdminBundle:CRUD

The Versions

09/12 2013

dev-master

9999999-dev

Symfony WXRGeoBundle

  Sources   Download

MIT

The Requires

 

address geo city country region

07/10 2013

v2.1.0

2.1.0.0

Symfony WXRGeoBundle

  Sources   Download

MIT

The Requires

 

address geo city country region