Google Map: obtain latitude and longitude from user address

Hi all, i have a form registration, where my user insert his address complete (city,zip,address).

I would obtain the latitude and longitude because next i use them to display in a map with other users addresses.

If the address doesn’t give a latitude and longitude the user can click on a map to obtain them

I know that i could build all of that using google map api but i’m asking if there’s something similar as example for yii2.

Thank’s for any help