PHP Classes

Basic Realm Authentication Controller: Authenticate users with HTTP basic mechanism

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 606 All time: 5,159 This week: 455Up
Version License PHP version Categories
http-basic-auth 1.1GNU Lesser Genera...5.3HTTP, PHP 5, User Management, Security
Description 

Author

This class can authenticate users with HTTP basic mechanism.

It can restrict the access to the current page or content using HTTP Basic mechanism to require the user to enter the user name and a password.

The class validate the user and set session variables to store the validated user identification details.

The class can also be extended to implement user name and password validation in many ways like checking against database records or FTP servers.

Picture of Md. Shahadat Hossain Khan Razon
  Performance   Level  
Name: Md. Shahadat Hossain ... <contact>
Classes: 14 packages by
Country: Bangladesh Bangladesh
Age: 43
All time rank: 2986 in Bangladesh Bangladesh
Week rank: 158 Up2 in Bangladesh Bangladesh Up

Screenshots (1)  
  • prompting__user_password.png
  Files folder image Files (12)  
File Role Description
Plain text file http.auth.cls.php Class Class file of this package
Accessible without login Plain text file array.http.auth.eg.php Example Example: Authentication by Array
Accessible without login Plain text file constant.http.auth.eg.php Example Example: Authentication by Constant/Embedded User Information
Accessible without login Plain text file customclass.http.auth.eg.php Example Example: Authentication by Custom Class
Accessible without login Plain text file db.basic.realm.auth.cls.php Example Example: Authentication by Existing Database User
Accessible without login Plain text file ftp.basic.realm.auth.cls.php Example Example: Authentication by FTP server
Accessible without login Plain text file function.http.auth.eg.php Example Example: Authentication by Customized Function
Accessible without login Plain text file http.auth.eg.php Example Example: Simple Authentication (With Embedded Credential) [not recommended approach]
Accessible without login Plain text file index.php Example Example Index
Accessible without login Plain text file pop.and.basic.realm.auth.cls.php Example Example: Authentication by POP3 server
Accessible without login Plain text file secure.file.eg.php Example Example Helper Static File

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
Downloadhttp-basic-auth-2013-01-12.zip 87KB
Downloadhttp-basic-auth-2013-01-12.tar.gz
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
FTP Writer Class Download .zip .tar.gz Authentication by FTP Servers Optional
SQL Handling Functions Download .zip .tar.gz Authentication by Database Optional
 Version Control Unique User Downloads Download Rankings  
 0%
Total:606
This week:0
All time:5,159
This week:455Up