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.
View on GitHub →laranail/phone