Download the PHP package rauwebieten/zipcodes without Composer
On this page you can find all versions of the php package rauwebieten/zipcodes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package zipcodes
Zipcodes
A collection of country zipcodes (postal codes).
Currently supported:
- BE
- DE
- ES
- FR
- IT
- LU
- NL
All data is fetched from geonames.org and converted to PHP array files.
Installation
install library
composer require rauwebieten/zipcodes
Usage
Get all zipcodes for a country (use the country's ISO code as parameter)
$data = \RauweBieten\ZipCodes\ZipCodes::getData('BE');
You'll receive an array of zipcode entries:
[
[
"country" => "DE"
"zipcode" => "01945"
"place" => "Schwarzbach"
"latitude" => "51.45"
"longitude" => "13.9333"
],
...
]
Use this data to populate your database.
Do not use directly :)
Contribute
Need some country zipcodes not supported yet?
-
Leave a github issue
-
or do pull request and use the builder like this, and follow the CLI instructions
"bin/zipcodes"
All versions of zipcodes with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.3
The package rauwebieten/zipcodes contains the following files
Loading the files please wait ....