PHP code example of studioespresso / craft-easyaddressfield
1. Go to this page and download the library: Download studioespresso/craft-easyaddressfield library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
studioespresso / craft-easyaddressfield example snippets
use studioespresso\easyaddressfield\events\RegisterGeocoderEvent;
use studioespresso\easyaddressfield\services\GeoLocationService;
Event::on(
GeoLocationService::class,
GeoLocationService::EVENT_REGISTER_GEOCODERS,
function (RegisterGeocoderEvent $event) {
$event->geoCoders['your-service'] = YourGeoCoder::class;
});