|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2023-12-03 (2 days ago) || 55%||Total: 5,326 This week: 22||All time: 482 This week: 10|
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..
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 complete documentation.
Use [Composer](http://getcomposer.org) :
composer require francium/logsys
The **[Blog Post](http://subinsb.com/php-logsys)** contains the entire information on how to install and use logSys.
The following folders contain examples of usage
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.
Versions & Upgrading
* Follow [PSR standards](http://www.php-fig.org/psr)
* Write or modify unit tests for changes you make (if applicable)
* Run unit tests before pull request.
## Security Bugs
Please report security bugs directly to me via [email](https://subinsb.com/contact).
First of all do a `composer update` in the main folder. This will install phpunit.
Edit the database configuration in the XML files located in `testing` folder and run :
vendor/bin/phpunit -c testing/phpunit.mysql.xml && vendor/bin/phpunit -c testing/phpunit.postgresql.xml && vendor/bin/phpunit -c testing/phpunit.sqlite.xml
||Applications that use this package
If you know an application of this package, send a message to the author to add a link here.