V360Geo
in package
Table of Contents
- cityList() : Collection
- Get list of states for the country
- countries() : void
- Get countries
- countryList() : Collection
- Get list of counrties
- postalCodeCity() : CityPostalCode
- Get list of city matches with this postal code
- stateList() : Collection
- Get list of states for the country
Methods
cityList()
Get list of states for the country
public
static cityList(int $stateId) : Collection
Parameters
- $stateId : int
Return values
Collection —countries()
Get countries
public
static countries([array<string|int, mixed> $select = ['id', 'name', 'code', 'has_postal_code', 'isd_code'] ]) : void
Parameters
- $select : array<string|int, mixed> = ['id', 'name', 'code', 'has_postal_code', 'isd_code']
Return values
void —countryList()
Get list of counrties
public
static countryList([string $key = 'id' ][, string $value = 'name' ]) : Collection
Parameters
- $key : string = 'id'
- $value : string = 'name'
Return values
Collection —postalCodeCity()
Get list of city matches with this postal code
public
static postalCodeCity(int $countryId, string $postalCode) : CityPostalCode
Parameters
- $countryId : int
- $postalCode : string
Return values
CityPostalCode —stateList()
Get list of states for the country
public
static stateList(int $countryId) : Collection
Parameters
- $countryId : int