You can use Firebase Authentication to sign in a user by sending an SMS message to the user's phone. The user signs in using a one-time code contained in the SMS message.
• Add Firebase to your Project
• Running the project locally
• create a firebase project and copy the firebase configuration in script.js file for more info follow this link: https://firebase.google.com/docs/web/setup
• Please clone or download the project from this link : https://github.com/RajabMohammadi/firebase-phone-verification
• Clone the project into wamp server location c:/wamp/www/
• Open your browser enter this url localhost/firebase-phone-verification/index.html