A Personal PHP Auth which you might find useful. Created for a Faster deployment of your Authentication Web App. I Basically use it for simple login/Register and stuffs like that.
You can take hold of this lib by.
- Starting up your terminal and punching
$ git clone https://github.com/Kofacts/Simple_PHP_Auth.git
-
Having done that, the package would be installed in a folder named "Simple_PHP_Auth"
-
Create a New instance of the login class which takes two params. Connection name and DB Name with table users_details.
$login = new login($connect,"user_details");
- Having done that, You can verify a user by calling.
$login->verifyLogin($_POST['username'],$_POST['password'],$callback_url,$error_message);
- To register, you can use
$login->register($username,$password,$email,$telephone,$address); in this order
Actually more features are still been added.
Wheew. That's Awesome, Do send me a mail obodugorapheal[at]gmail.com
DO Send me a pull request.
Just Star. Actually... Em, that's just it.
PS: This Library is still in Development.