PHP Classes

PHP SMS Authentication: Authenticate users once using codes sent via SMS

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 65%Total: 3,011 All time: 1,218 This week: 105Up
Version License PHP version Categories
sms-authentication 1BSD License5PHP 5, Wireless and Mobile, User Mana...


This class can authenticate users once using codes sent via SMS.

It can take a phone number of a user to authenticate and sends a HTTP request to a local server script that will send a SMS message to that number with a generated password using the TxtLocal API.

The generated password is stored in a MySQL database for subsequent verification.

The class can also verify the password entered by the user to authenticate him as owner of the given phone number by sending another HTTP request to the local server script to check the database to verify if the password is correct.

Innovation Award
PHP Programming Innovation award nominee
August 2013
Number 2

Prize: One copy of the Zend Studio
One way to verify and authenticate a person is to send a SMS message to phone that he owns.

When combined with password based authentication, this forms what is called two factor authentication. It verifies one thing that the person knows, the password, and verifies one thing that he owns, the phone.

This class can help performing two factor authentication by sending a SMS message with a secret code that the user needs to enter in a Web page to prove that he owns the phone with the number that he supplied.

Manuel Lemos
Picture of Andy Dixon
  Performance   Level  
Name: Andy Dixon <contact>
Classes: 6 packages by
Country: United Kingdom
Age: 40
All time rank: 70835 in United Kingdom
Week rank: 441 Up22 in United Kingdom Up
Innovation award
Innovation award
Nominee: 1x


Send One Time Password to Mobile Number
Generate OTP for user login

How can users login with SMS authentication?
Login page code that has SMS authentication

Code for sign up authentication via SMS
user login authentication using sms

  • A43Zk3jCAAA3Ox_.jpg
  Files folder image Files  
File Role Description
Plain text file class.smsAuthentication.php Class Application class (for your projects)
Accessible without login Plain text file database.sql Data SQL
Accessible without login Plain text file example.php Example Very simple example
Accessible without login Plain text file index.php Appl. Authentication Provider

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,218
This week:105Up
 User Ratings  
 All time