PHP code example of christopherbolt / silverstripe-addressfinderfield

1. Go to this page and download the library: Download christopherbolt/silverstripe-addressfinderfield 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/ */

    

christopherbolt / silverstripe-addressfinderfield example snippets


AddressFinderField::create(DataObject $data, $name, $title = null, $databaseFields = array(), $hiddenFields = false)

AddressFinderField::create($this, 'AddressFinder', 'Search address')

$addressConfig = array(
  'Address' => 'a',
  'City' => 'city',
  'Street' => 'street'
);