antonioribeiro / antonioribeiro/zipcode

Suggestion: Use googlei18n/libaddressinput as service

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
97
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Dear @antonioribeiro

Great package you have provided 👍

I would like to suggest looking into the package [googlei18n/libaddressinput](https://github.com/googlei18n/libaddressinput) by Google. This package uses [Google's Address Data Service](https://chromium-i18n.appspot.com/ssl-address/data) as the validation rules and supports almost all countries in the world. Note that this validation is powering both Android and Chromium.

Unfortunately, I do not possess the skills to implement this myself, but I think it would be of great value to this package to support this data source. A similar package, [Propaganistas/Laravel-Phone](https://github.com/Propaganistas/Laravel-Phone), exists for Google's phone number package (also powering both Android and Chromium) [googlei18n/libphonenumber](https://github.com/googlei18n/libphonenumber). Unfortunately no PHP porting of the `libaddressinput` seems to exist as far as I know, but the [commerceguys/addressing](https://github.com/commerceguys/addressing) package seems to be doing a lot of the same work but using local json files.

I hope this migh serve as inspiration. Keep up the much appriciated work 👍

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.