francium / logsys
PHP Secure, Advanced Login System
Installs: 1 249
Dependents: 0
Suggesters: 0
Security: 0
Stars: 81
Watchers: 24
Forks: 66
Open Issues: 4
Requires
- php: >=5.6
- duncan3dc/sessions: 1.2.0
Requires (Dev)
- phpunit/phpunit: 5.7.16
README
PHP Advanced Login System as part of the Francium Project
See this Blog Post for complete documentation.
Installation
Use Composer :
composer require francium/logsys
Instructions
The Blog Post contains the entire information on how to install and use logSys.
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 (SMTP) or Mailgun API to send emails.
Versions & Upgrading
See CHANGELOG
Contributing
- Follow PSR standards
- 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.
Testing
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