---
title: "How to Confirm Phone Number Ownership with Lookup Identity Match in PHP"
description: "The post presents a PHP signup flow that uses Twilio Lookup Identity Match to confirm whether submitted identity details correspond to a phone number and to reduce signup fraud. Identity Match performs a zero-knowledge match against authoritative sources such as mobile carrier records, using supplied fields including names, addresses, national IDs, or dates of birth. The implementation builds on a Slim PHP project, adds Twig form handling and the Twilio REST client, then sends the phone number, first name, and last name through the Lookup API. Registration succeeds only when the number is valid and both names return exact_match or high_partial_match; otherwise, the form displays an instruction to provide information for a phone number the user owns."
---

# How to Confirm Phone Number Ownership with Lookup Identity Match in PHP

[Twilio](https://yomu.fyi/company/twilio) · Kelley Robinson, Matthew Setter · Aug 31, 2026

**Type:** Tutorial

## Summary

The post presents a PHP signup flow that uses Twilio Lookup Identity Match to confirm whether submitted identity details correspond to a phone number and to reduce signup fraud. Identity Match performs a zero-knowledge match against authoritative sources such as mobile carrier records, using supplied fields including names, addresses, national IDs, or dates of birth. The implementation builds on a Slim PHP project, adds Twig form handling and the Twilio REST client, then sends the phone number, first name, and last name through the Lookup API. Registration succeeds only when the number is valid and both names return exact\_match or high\_partial\_match; otherwise, the form displays an instruction to provide information for a phone number the user owns.

## Context

The post addresses fake accounts and signup fraud by describing a way to confirm that a person is linked to the phone number provided. It positions Identity Match as a lower-friction alternative to credit bureau and document verification for this type of confirmation.

## Approach / What changed

The example extends a Slim PHP starter project with a Twig signup form, environment-based Twilio credentials, and the Twilio REST client. On POST, it sends the phone number, first name, and last name to the Lookup API with the identity\_match field, then checks validity and the returned name-match values.

## Takeaways

- The sample request uses the Lookup API's identity\_match field with a phone number, first and last name, and optional identity attributes such as address and date of birth.
- The PHP example uses Slim, Twig, Composer, and Twilio's REST client; it reads TWILIO\_ACCOUNT\_SID and TWILIO\_AUTH\_TOKEN from the environment.
- The success check requires numberDetails->valid plus exact\_match or high\_partial\_match for both first\_name\_match and last\_name\_match; other response values include no\_match and no\_data\_available.

**Tags:** [PHP](https://yomu.fyi/topic/php), [REST APIs](https://yomu.fyi/topic/rest-api)

- Source: [Twilio](https://www.twilio.com/en-us/blog/developers/tutorials/product/confirm-phone-number-ownership-lookup-identity-match-php)
- Source URL: https://www.twilio.com/en-us/blog/developers/tutorials/product/confirm-phone-number-ownership-lookup-identity-match-php
- Ingested by Yomu: 2026-09-09T13:35:54.507Z

[Read original post](https://www.twilio.com/en-us/blog/developers/tutorials/product/confirm-phone-number-ownership-lookup-identity-match-php)
