Skip to content

Ethredah/PHP-sms-OTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-sms-OTP

Register / Login with PHP SMS OTP

PHP - CodeIgniter

A package that sends an sms with a One-Time-Password to any phone number used by the user to login to their account.

It requires an AuthKey that can be generated by registering at Textlocal which gives you 10 free trial sms.

INSTALLATION

To install this package you will need:

CodeIgniter (https://codeigniter.com/)
PHP
An account of https://www.textlocal.com/

Don't forget to set the APPPATH with auth secret key in the constants file!, you can get your key at Textlocal dashboard.

Create a Database to save user details and for verifying users logging in.


-- -- Table structure for table register

CREATE TABLE register ( id int(11) NOT NULL, name varchar(100) NOT NULL, email varchar(100) NOT NULL, phone varchar(100) NOT NULL, otp varchar(100) NOT NULL, amount int(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--

Upload Files in server and voilà !

About

Register / Login with PHP SMS OTP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages