All articles
James Whitaker

James Whitaker

PHP, Ruby and ecommerce checkout for sthan.io

James writes the PHP and Ruby track: verifying and parsing US addresses in Laravel and Ruby on Rails, and adding address autocomplete to a Laravel checkout form.

Each article ends in a controller you can drop into an app, and maps the answer onto your models: Eloquent columns in Laravel, ActiveRecord attributes in Rails.

  • 5 articles
  • 50 minutes of reading
  • PHP 8.1+ and Laravel 10+
  • Latest: Jun 27, 2026

What James covers

Pick the job and the framework. Every filled cell is one article.

Job PHP / Laravel Ruby on Rails
Check an address is deliverable Verify in PHP / Laravel Laravel Http client, a controller that accepts, warns or blocks Verify in Ruby on Rails Net::HTTP client and a controller action
Split an address into fields Parse in PHP / Laravel components mapped to Eloquent columns Parse in Ruby on Rails components mapped to ActiveRecord attributes
Suggest addresses as people type Autocomplete in PHP / Laravel controller proxy and a debounced input No article yet

Where to start

A reading order for a PHP or Rails developer.

  1. Verify in your stack 10 min
    Laravel or Rails: check the address when the form is submitted.
  2. Parse in your stack 10 min
    Store each part of the address in its own column.
  3. Help people type the address right the first time.

What the code assumes

PHP
PHP 8.1 or newer, Laravel 10 or newer, the Laravel Http client
Ruby
Ruby 3.0+ for verification and 2.7+ for parsing, with Net::HTTP
Your key
Called from your controller, never from the browser

All articles by James

Tutorial

How to Add Address Autocomplete in PHP / Laravel

Add US address autocomplete to your Laravel app. Free API, a server-side controller proxy, the Http client, and a debounced front-end input.

Jun 27, 2026 10 min
Tutorial

How to Verify US Addresses in PHP / Laravel

Confirm deliverability at submit. Free API, the Laravel Http client, and a controller that branches on DPV - accept, warn, or block.

Jun 27, 2026 10 min
Tutorial

How to Verify US Addresses in Ruby on Rails

Confirm deliverability at submit. Free API, a Net::HTTP client, and a Rails controller action that branches on DPV - accept, warn, or block.

Jun 27, 2026 10 min
Tutorial

How to Parse US Addresses in PHP / Laravel

Split freeform addresses into structured components. Free API, the Laravel Http client, components mapped to Eloquent columns.

Jun 27, 2026 10 min
Tutorial

How to Parse US Addresses in Ruby on Rails

Split freeform addresses into structured components. Free API, a Net::HTTP client, components mapped to ActiveRecord attributes.

Jun 27, 2026 10 min