1. Go to this page and download the library: Download enmaboya/place-input 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/ */
enmaboya / place-input example snippets
use Enmaboya\PlaceInput\PlaceInput;
PlaceInput::make('some_place')
use Enmaboya\PlaceInput\PlaceInput;
PlaceInput::make('some_place')->onlyCities()
use Enmaboya\PlaceInput\PlaceInput;
PlaceInput::make('some_place')->onlyCountries()
use Enmaboya\PlaceInput\PlaceInput;
PlaceInput::make('some_place')->onlyStates()
use Enmaboya\PlaceInput\PlaceInput;
PlaceInput::make('some_place')->onlyCounties()
use Enmaboya\PlaceInput\PlaceInput;
PlaceInput::make('some_place')->byPostalCode()
use Enmaboya\PlaceInput\PlaceInput;
PlaceInput::make('some_place')->continents(['NA', 'SA'])
use Enmaboya\PlaceInput\PlaceInput;
PlaceInput::make('some_place')->countries(['RU', 'US', 'CN', 'JP'])
use Enmaboya\CountrySelect\CountrySelect;
use Enmaboya\PlaceInput\PlaceInput;
CountrySelect::make('Country', 'county_code');
PlaceInput::make('some_place')->dependOnCountrySelect('county_code'),
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.