Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PatrickL's avatar

Address Validation In PHP and Laravel

Are there any recommended packages for validating addresses? I have my app split across several projects, each their own bounded context. In my User Bounded Context, I need to validate the address entered by the user to be used in the application. I just need to make sure the address exists. Nothing more (at least for this component).

Any advice.

0 likes
4 replies
Cronix's avatar

Are these addresses in a specific country, or is it world-wide?

I've used this before, and it works well: https://smartystreets.com/

I've also just used google geocoding service (as well as other geocoding services) and just pass the address.

PatrickL's avatar

@Cronix Preferrably world wide. My plan is to store all user data, including user addresses (this component) in one component. And then have another component dedicated to geocoding and doing stuff with this data.

Cronix's avatar

I'd check out the first link I posted. It's a good service. It does cost though, but I haven't found a "free" service that is accurate world-wide. That's a lot of addresses to maintain...for "free".

PatrickL's avatar

@Cronix Alright. I’ll try it out. But, if I end up having to spend money, I might as well just use the Geocoder I am using on my other component lol

Please or to participate in this conversation.