PHP Classes
elePHPant
Icontem

Secure PHP Login System: Register and login users using a database via PDO

Recommend this page to a friend!
  Info   View files Example   Demos   View files View files (24)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-04-23 (1 month ago) RSS 2.0 feedStarStarStar 53%Total: 2,982 This week: 26All time: 1,185 This week: 31Up
Version License PHP version Categories
secure-login-system 0.7Custom (specified...5.3PHP 5, Databases, User Management
Description Author

This class can register and login users using a database via PDO.

It can process the registration of a user given the user name, password, name and email address.

It can also authenticate a user given the user name and password and optionally set a cookie to remember the user name on the next login.

The class starts a session for successfully authenticated users.

It can also log out by ending the user session, send a password reminder message and change the user password.

It also implements a two step login process similar to that of Google's, Facebook's SMS security process.

The user can see they devices they used to log in as well as log out from a device used before.

The class also provides an administration interface to manage users, edit details, see statistics, etc..

Recommendations

What is the best PHP session wrapper class?
I need PHP session class along with user management

What is the best PHP login limit attempts class?
Limit attempts of login

I need a PHP class for professional login system
Create a professional login system

Looking for a Registration-login system
Along with Social registration with latest APIs if any!

user login script
package to create, update user login logout

What is the best PHP mysql login class?
MySQL login script

Secure user management
Need a secure user login management

simple user and password login
User name and password login

Picture of Subin Siby
  Performance   Level  
Name: Subin Siby is available for providing paid consulting. Contact Subin Siby .
Classes: 4 packages by
Country: India India
Age: 16
All time rank: 87148 in India India
Week rank: 30 Up6 in India India Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Details
logSys
======

PHP Advanced Login System as part of the [Francium Project](http://subinsb.com/the-francium-project)

See this [Blog Post](http://subinsb.com/php-logsys) for more details

Features
========

logSys includes but not limited to :

1. Basic Login/Register Function (Secured by PDO, SHA256).
   Hashes passwords with random salt + site salt + password
2. Password Reset (Forgot Password) functionality
3. 2 Step Login (2 Step Verification by Mobile SMS/E-Mail)
4. Custom fields
5. Device Manager to know the devices that are currently logged in
6. Debugging/Logging made simpler
7. Simple Examples to get you started
8. Lightweight (**42 KB of Awesomeness...**)
9. Maintained frequently
10. Email Functionality

Instructions
============

The [Blog Post](http://subinsb.com/php-logsys) contains entire information on how to install and use logSys

In case of GitHub repo, the following folders contain examples of usage
* example-basic
* example-two-step-login

PHP's mail() function is used to send emails. Most likely, emails sent through it will reach the SPAM folder. To avoid this, add an email function in `config` -> `basic` -> `email_callback`.

I recommend to use [PHPMailer](https://github.com/PHPMailer/PHPMailer/) (SMTP) or [Mailgun API](https://mailgun.com) to send emails.
  logSys DemoExternal page  
  Files folder image Files  
File Role Description
Files folder imageexample-basic (8 files)
Files folder imageexample-two-step-login (9 files)
Accessible without login Plain text file Changelog.md Data The changelog
Plain text file class.logsys.php Class Class source
Accessible without login Plain text file composer.json Data composer file
Accessible without login Plain text file Francium.log Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. GPL License
Accessible without login Plain text file README.md Data A Readme
Accessible without login Plain text file table.sql Data The SQL file to create the tables in Database

  Files folder image Files  /  example-basic  
File Role Description
  Accessible without login Plain text file change.php Example Example script
  Accessible without login Plain text file config.php Example Example script
  Accessible without login Plain text file home.php Example Example script
  Accessible without login Plain text file index.php Example Example script
  Accessible without login Plain text file login.php Example Example script
  Accessible without login Plain text file logout.php Example Example script
  Accessible without login Plain text file register.php Example Example script
  Accessible without login Plain text file reset.php Example Example script

  Files folder image Files  /  example-two-step-login  
File Role Description
  Accessible without login Plain text file change.php Example Example script
  Accessible without login Plain text file config.php Example Example script
  Accessible without login Plain text file home.php Example Example script
  Accessible without login Plain text file index.php Example Example script
  Accessible without login Plain text file login.php Example Example script
  Accessible without login Plain text file logout.php Example Example script
  Accessible without login Plain text file manage-devices.php Example Example script
  Accessible without login Plain text file register.php Example Example script
  Accessible without login Plain text file reset.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:2,982
This week:26
All time:1,185
This week:31Up
User Ratings User Comments (3)
 All time
Utility:76%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:76%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:1491