Register / Login with PHP SMS OTP
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.
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.
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;
--