hatchmoment. scored by care · not by stars

phone

Laravel phone number library: parsing, validation, formatting, and Eloquent casts

This package wraps libphonenumber in a Laravel-friendly value object, offering parsing, normalization, validation with reasons, and per‑country input masks. It integrates with Eloquent via casts and provides a test‑number factory, making phone data storage and display reliable. Designed for Laravel developers who need accurate, immutable phone handling without writing boilerplate code. Compared to generic PHP phone libraries, it adds Laravel‑specific conveniences and a fluent API.

e164laravellibphonenumberossphonephone-numberphp
View on GitHub →

laranail/phone