PHP Classes

PHP JSON Login System: Login system that works with JSON files

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-09-25 (1 year ago) RSS 2.0 feedStarStar 39%Total: 451 This week: 2All time: 6,050 This week: 145Up
Version License PHP version Categories
json-login-system 1.0.1Custom (specified...5PHP 5, Files and Folders, User Manage...
Description Author

This class implements a login system that stores user records on JSON files.

It can create user records in JSON files to avoid needing a database server.

The JSON files include the email of the user and a hash of the user password using the password_hash function.

The class can also verify if the user is logged and authenticate the user generating login forms and verifying if the entered email and password are correct.

It generates HTML for both the registration and login form.

  Performance   Level  
Name: naveen is available for providing paid consulting. Contact naveen .
Classes: 4 packages by
Country: India India
Age: ???
All time rank: 2168137 in India India
Week rank: 153 Up23 in India India Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x



Json Login System

It is a simple class which uses the json file to store and retrieve the username and passwords, built for small applications which does not use database much often (eg. filemanager)

If someone reads that file will the passwords get exposed?

A big no!.If you want to store password in the json file you must use password_hash as demonstrated in the sample


  Files folder image Files  
File Role Description
Plain text file class.jsonHandler.php Class Class source
Plain text file LICENSE Lic. License text
Plain text file Data Auxiliary data
Plain text file samples.php Example Example script

 Version Control Unique User Downloads Download Rankings  
This week:2
All time:6,050
This week:145Up
User Ratings User Comments (2)
 All time