Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Intl Tel Input Bundle Laravel Package

mpetrini/intl-tel-input-bundle

Symfony bundle for integrating intl-tel-input into PHP applications. Adds an international telephone input with country flags, automatic formatting, and client-side validation, making phone number collection in forms easier and more consistent. Configurable assets and form helpers streamline setup.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: Poor as a direct Laravel dependency. The package is a Symfony 4 bundle that integrates the International Telephone Input JavaScript library into Symfony Form types. Laravel does not use Symfony’s Form component, Twig form themes, or bundle registration model in the same way, so the package’s primary value—Symfony form integration—does not transfer to Laravel.
  • Integration feasibility: Feasible only by bypassing the bundle and using the upstream intl-tel-input JavaScript library directly in a Laravel Blade/component + Vite/Mix setup. Reusing the bundle would require porting Symfony-specific form types, Twig templates, service wiring, and asset assumptions, which is likely more work than a thin Laravel-native implementation.
  • Technical risk: High relative to the small problem being solved. Indicators include score 0, no stars, no dependents, Symfony 4 focus, and a narrow GitLab-hosted package. Risks include stale Symfony/PHP constraints, unclear maintenance cadence, undocumented asset publishing, and mismatch between client-side phone formatting and server-side Laravel validation.
  • Key questions: Is the package maintained or abandoned? What license applies? Which intl-tel-input version and utils.js behavior are bundled? Does it provide server-side normalization/validation or only UI formatting? What Symfony/PHP versions are supported? Are there tests, security posture, and asset publishing instructions? Can the JS integration be consumed directly without the Symfony bundle?

Integration Approach

  • Stack fit: Do not add mpetrini/intl-tel-input-bundle to a Laravel application as a Composer dependency. Treat it as a reference implementation for Symfony, not a Laravel package.
  • Migration path: Use the upstream intl-tel-input npm package with Laravel Vite, expose a Blade component or form partial, and implement server-side validation/normalization in Laravel. Store a normalized E.164 number plus optional country ISO code; do not rely on the widget’s formatted display value.
  • Compatibility: Verify Laravel/PHP versions independently; the Symfony bundle’s constraints are largely irrelevant to Laravel. The real compatibility surface is the intl-tel-input JS version, browser support, CSP/asset pipeline, and any hidden-input or country-sync behavior.
  • Sequencing: Start with a time-boxed spike using the upstream JS library in one form. Add a Laravel validation rule for E.164/phone parsing, then standardize the Blade component and asset loading. Only revisit the Symfony bundle if a concrete reusable PHP implementation can be extracted without Symfony Form coupling.

Operational Impact

  • Maintenance: Low if using the upstream JS library directly; higher if porting or vendoring Symfony bundle code. The bundle itself has weak community signals, so long-term support should be assumed to be internal.
  • Support: Minimal vendor support. The team will own documentation, asset publishing, country-code behavior, and validation edge cases. Ramp-up for developers is moderate for front-end phone input behavior but low for Laravel form integration.
  • Scaling: The client-side widget has negligible backend scaling impact. Operational scaling concerns are mainly asset delivery, JS bundle size, internationalization edge cases, and consistency of stored phone numbers.
  • Failure modes: Broken asset/CDN loading, missing utils.js, mismatched client/server validation, incorrectly persisted formatted numbers, stale country data, CSP conflicts, and abandoned-package risk. Server-side validation must remain authoritative.
  • Ramp-up: A Laravel team can implement the upstream library faster than adapting the Symfony bundle. The TPM recommendation is to avoid direct bundle adoption, reuse the upstream JS, and build a small Laravel-native wrapper with explicit validation and storage conventions.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk