Download the PHP package tmcycyit/geo-bridge-bundle without Composer
On this page you can find all versions of the php package tmcycyit/geo-bridge-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package geo-bridge-bundle
GeoBridgeBundle
Installation
Step1: Download GeoBridgeBundle using composer
Add GeoBridgeBundle in your composer.json:
Now update composer.phar
Composer will install the bundle to your project's vendor/yit
directory.
Step 2: Enable the bundle
Enable the bundle in the kernel:
If you will use geo_address form field in your project
Step 3: Add the following configuration in app/config/config.yml
Step 4: Import GeoBridgeBundle routing files
And then add YitAutocomplete Angularjs module from Bower
Then you can add a new form field`
data_id attribute must be unique for each geo_address field. you can also add other attributes to the form field.
Then you can add a address form field in Sonata Admin`
In Sonata Admin template add js
Step5: Configured GeoBridgeBundle synchronization using run command after composer install or update
Add RunManageGeoStoredProcedureCommand in your composer.json:
Now the bundle is configured and ready to use, if you need to use in entity address, street or district which will a relation with GeoBundle addresses, streets and districts, then you will implements the AddressableInterface, StreetableInterface, MultiAddressableInterface, DistrictableInterface and other interfaces accordingly in your entites. And than when you will load your entity from db, GeoBridgeBundle will automatically call interface functions with corresponding arguments, to set all necessary information.
The interface implementations here`
You can also use 'yit_geo' service to use some functions, there are here`
The bundle use apc_cache and by default save addresses in the cache during 24 hours, you can change the time of experience by add the fallowing in your config.yml
You can also add project name in the config to save it in the geo project, this done by add the following in the config.yml
You can also add Geo main project domain in the config. If empty this config default http://geo.yerevan.am/