PHP Security One: Base class to authenticate an logged in users

Recommend this page to a friend!
  Info   View files Example   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-03-28 (10 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 150 All time: 8,880 This week: 261Up
Version License PHP version Categories
securityone 1.0.1GNU Lesser Genera...5PHP 5, User Management, Security
Description Author

This package provides a base class to authenticate an logged in users.

It can process the authentication of user that logs in with a user name and a password using callback functions to perform the credentials verification and user permission checks.

A sub-class can extend the base class to implement these verifications for instance against a real database of registered users.

Picture of Jorge Castro
  Performance   Level  
Name: Jorge Castro <contact>
Classes: 21 packages by
Country: Chile Chile
Age: 45
All time rank: 15664 in Chile Chile
Week rank: 17 Up1 in Chile Chile Up
Innovation award
Innovation award
Nominee: 10x

Winner: 1x



It's a barebone security class written on PHP

Packagist Total Downloads [License]() [Maintenance]() [composer]() [php]() [php]() [Doc]()


You can check a full usage (for mysql) in



  • 2018-10-27 2.1 Some maintenance changes. Now serialize() and deserialize() are public and field extraFields is functiona.
  • 2018-10-11 2.0 We changed some fields. Now address and phone fields are part of extraFields.
  • 2018-09-29 1.6 added status and cookie.
  • 2018-09-22 1.4 added role
  • 2018-09-22 1.3 some fixes
  • 2018-09-22 1.0 First version
  Files folder image Files  
File Role Description
Files folder imageexamples (4 files)
Files folder imagelib (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file 1.basiclogin.php Example Example script
  Accessible without login Plain text file 2.logged.admin.php Example Example script
  Accessible without login Plain text file 2.logged.php Example Example script
  Accessible without login Plain text file 3.logout.php Example Example script

  Files folder image Files  /  lib  
File Role Description
  Plain text file SecurityOne.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,880
This week:261Up

For more information send a message to info at phpclasses dot org.