rm/address

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Component for fetching address

dev-master 2018-05-09 18:20 UTC

This package is auto-updated.

Last update: 2021-07-05 14:15:54 UTC


README

Configuration

config.neon

extensions:
	address: RM\Address\DI\AddressExtension

address:
	google:
		country: sk
		language: sk

config.local.neon

address:
	google:
		key: secretKeyFrom300gle

In component

$form['street']->setAttribute('data-source', $presenter->link(':Address:Address:address'));
// $form['number'];
// $form['city'];
// $form['zip'];
// $form['country']; // options are array of ['code' => 'Name of state', 'sk' => 'Slovakia']