m-adamski/symfony-phone-number-bundle
Symfony bundle for working with phone numbers: validate, parse, and format international numbers via libphonenumber, with integrations for forms, validators, and Twig helpers. Simplifies consistent phone number handling across Symfony applications.
PhoneNumberType form field plus validation for E.164-style numbers, so "add international phone support" becomes a configuration task rather than a bespoke field-plus-validator build in every form.Consider it when:
symfony/form and its type/validation pipeline. This is a Symfony bundle; it is not a Laravel package in the native sense, and Laravel apps would need to pull in Symfony Form to benefit — usually the wrong trade.Look elsewhere when:
To executives: This is a small, low-cost component that lets us accept and validate international phone numbers consistently instead of rebuilding that logic per feature. The main thing to flag is dependency risk: it is maintained by a very small team, so we treat it as a pinned, monitored dependency rather than a strategic platform choice.
To engineering: The bundle gives us a standard Symfony form type for phone numbers backed by a well-tested parsing library. Note the 4.0.1 change — the field no longer translates country choice labels itself; if a form needs localized country names, that must be supplied explicitly via choice labels. Treat the upgrade as a low-risk patch (no API or validation changes), verify localized forms in QA, and keep the version pinned with a scheduled review of upstream activity. If we later need a framework-native Laravel path or a richer front-end picker, that is a separate build decision, not a reason to fork this bundle.
How can I help you explore Laravel packages today?