please query packagist.org
There are probably several to suit your needs
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
sorry , but I am new to laravel I am making the society management admin dashboard. in this i want to show the country code list with my phone number input field when we insert the society members . can someone recommend me how should i do that or which package is best for this ? thank you in advanced for help .
You can use the intl-tel-input JavaScript library for adding a country code dropdown to your phone number input field. It’s a widely used and reliable solution that provides an intuitive interface, automatic country detection, formatting, and validation.
for this you have to add two library for css and js
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/css/intlTelInput.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/intlTelInput.min.js"></script>
and input filed will be like
<input type="tel" id="phone" name="phone" class="form-control" placeholder="Enter phone number">
and this script use for show country code and mobile number validation
<script>
const phoneInput = document.querySelector("#phone");
window.intlTelInput(phoneInput, {
initialCountry: "auto",
geoIpLookup: callback => {
fetch('https://ipinfo.io/json?token=<YOUR_TOKEN>')
.then(response => response.json())
.then(data => callback(data.country))
.catch(() => callback('us'));
},
utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/utils.js",
});
</script>
Please or to participate in this conversation.