PHONE NUMBER VALIDATOR Working example of the libphonenumber-for-php. Script will take input from user, and make AJAX request to server, to check the number, and will show from which country it is. AJAX request written on plain Javascript, without using Jquery.