| Last Updated |   | Ratings |   | Unique User Downloads |   | Download Rankings | 
2024-07-05 (8 months ago)   |  | Not enough user ratings |  | Total: 66 This week: 1 |  | All time:  10,372 This week: 42  | 
 | 
| Description |   | Author  | 
This package can implement a login page for users in a MySQL table. 
 
It extends the SecurityOne package to provide user login services using a MySQL database to store and retrieve user data. 
 
The package uses PDO to access the MySQL database with the user's table.  |  | 
  | 
 | 
Innovation award
   Nominee: 14x
  Winner: 2x |  
 
 
  | 
Example
<?php 
 
use eftec\PdoOne; 
use eftec\SecurityOneMysql; 
include "../vendor/autoload.php"; 
 
$conn=new PdoOne('mysql',"127.0.0.1","root","abc.123","securitytest","log.txt"); //CREATE SCHEMA `securitytest` ; 
 
 
 
 
try { 
    $conn->connect(); 
 
} catch (Exception $e) { 
    die("Error :".$e->getMessage()); 
} 
 
$sec=new SecurityOneMysql($conn,"../lib/"); 
$sec->blade()->setMode(\eftec\bladeone\BladeOne::MODE_DEBUG); 
$sec->initPage="frontpage.php"; 
 
$sec->validate(); 
 
//$sec->createTables(); 
 
$sec->loginScreen("It is a login screen","you should <a href='1.initialize.php'>1.initialize.php</a> first. then the user is admin/admin or user/user"); 
 
 
 | 
 
Details
SecurityOneMysql
It's a security framework for PHP. It includes a login screen that could be customized.
[
]()
[
]()
[
]()
[
]()
[
]()
[
]()
Features
- 
Read user from the database.
 
- 
Role-based security (optional)
 
- 
Group base security (optional)
 
- 
Login screen
 
- 
Remember password (via cookie). The cookie doesn't store the user or password but a token).
 
- 
Register screen
 
- 
Activate (after register) screen. The activation is via email.
 
- 
Remember the password screen.  It also uses an activation email.
 
It is totally a beta version. Features could change.
  
Login Screen
  
Register Screen
version
- 
20200811 1.5.3 php>=5.6
 
- 
20200811 1.5.2 
* Update dependencies.    
* Fixed a bug creating the tables.  
 
- 
20200405 1.5.1 fixed .gitattributes
 
- 
20200125 1.5 
  * More cleanups. 
  * Now it uses pdo and eftec/pdoone to connects to the database.
 
- 
20181215 1.2 Maintenance
 
- 
20181028 1.1 It fixes a small bug with the extra fields. Now the extra fields are serialized (if any)
 
- 
20181027 1.0 Stable version.
 
- 
20181016 0.16 Changes to login and register screen. Now it's possible to select a different template
 
- 
20181015 0.15 Updated the version of SecurityOne() to 2.x
 
- 
20181015 0.14 Updated the version of ValidationOne()
 
- 
20181015 ~~0.13 Some changes~~
 
- 
20181003 0.12 Some changes
 
- 
20180930 0.11 Beta version.
 
Note
It's distributed as dual license, as lgpl-v3 and commercial. You can use in a commercial and closed source project.
 
 
|   | 
Applications that use this package | 
  | 
No pages of applications that use this class were specified.
 If you know an application of this package, send a message to the author to add a link here.