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    
Ratings Unique User Downloads Download Rankings
StarStar 39%Total: 671 All time: 4,818 This week: 71Up
Version License PHP version Categories
json-login-system 1.0.1Custom (specified...5PHP 5, Files and Folders, User Manage...


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.

Picture of naveen
  Performance   Level  
Name: naveen is available for providing paid consulting. Contact naveen .
Classes: 5 packages by
Country: India India
Age: ???
All time rank: 1812110 in India India
Week rank: 258 Up21 in India India Up
Innovation award
Innovation award
Nominee: 2x

Winner: 2x


What is the best PHP json login example class?
I need to check login credentials from JSON data

PHP/MYSQLi script for secure log in
Secure Login


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:0
All time:4,818
This week:71Up
User Ratings User Comments (2)
 All time