PHP Classes

Registration Module: Register and login users in MySQL database records

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 288 This week: 1All time: 7,526 This week: 57Up
Version License PHP version Categories
registration-module 1.0.0MIT/X Consortium ...5PHP 5, Databases, User Management
Description 

Author

This package register and login users in MySQL database records.

It can process all operations of management of users with records in a MySQL database using the mysqli extension.

Currently it can register a user, validate the user account, login the user and create a session.

Picture of Ankit Jain
Name: Ankit Jain <contact>
Classes: 4 packages by
Country: India India
Age: 28
All time rank: 3298217 in India India
Week rank: 69 Up5 in India India Up
Innovation award
Innovation award
Nominee: 2x

Example

<?php

namespace AnkitJain\RegistrationModule;
require (
dirname(__DIR__) . '/vendor/autoload.php');
use
AnkitJain\RegistrationModule\Login;

if(isset(
$_POST['q']))
{
   
$loginField = json_decode($_POST['q']);
   
$login = $loginField->login;
   
$password = $loginField->password;
   
$obLogin = new Login();
   
$data = array(
       
'login' => $login,
       
'passLogin' => $password
   
);
   
$result = $obLogin->authLogin($data);
    if(isset(
$result))
        echo
$result;
    else
        echo
json_encode([]);
}


Details

Registration-Module

Build Status Build Status Scrutinizer Code Quality Code Climate Coverage Status Issue Count Codacy Badge npm Packagist

> It is an open source module to integrate a login-registration part in your projects. It is completely integrated through ajax and js so you do not need to reload page whenever it sends a request, everything is done for you.

How to Setup

> Setting up on your local machine is really easy. Follow this guide to setup your development machine.

Requirements :

  1. PHP > 5.6
  2. MySQL
  3. Composer or npm or git

Installation :

  1. Get the source code on your machine via git.

    git clone https://github.com/ankitjain28may/registration-module.git
    
    Or
    
    "require" : { "registration-module/module" : "dev-master" }
    Or
    
    npm install registration-module
  2. Rename `config\database.example.php` to `config\database.php` and Change credential in `config\database.php`
  3. Create an empty sql database and run import database.

    create database [database name];
    mysql -u[user] -p [password] [database name] < path\sql\registration-module.sql
    
  4. Open a new terminal window and type

    php -S localhost:8080
    

    That's it, Now start development at http://localhost:8080 in your browser

Contribution guidelines

If you are interested in contributing to OpenChat, Open Issues and send PR. > Feel free to code and contribute

>Made By - Ankit Jain


  Files folder image Files (26)  
File Role Description
Files folder imageajax (2 files)
Files folder imageconfig (2 files)
Files folder imagejs (3 files)
Files folder imagesource (4 files)
Files folder imagesql (1 file)
Files folder imagetests (3 files)
Accessible without login Plain text file .codecov.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file account.php Aux. Auxiliary script
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file LICENSE.md Lic. License text
Accessible without login Plain text file logout.php Aux. Auxiliary script
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (26)  /  ajax  
File Role Description
  Accessible without login Plain text file validate_login.php Example Example script
  Accessible without login Plain text file validate_register.php Example Example script

  Files folder image Files (26)  /  config  
File Role Description
  Accessible without login Plain text file database.example.php Aux. Auxiliary script
  Accessible without login Plain text file database.travis.php Aux. Auxiliary script

  Files folder image Files (26)  /  js  
File Role Description
  Accessible without login Plain text file jquery-3.0.0.min.js Data Auxiliary data
  Accessible without login Plain text file login_validate.js Data Auxiliary data
  Accessible without login Plain text file register_validate.js Data Auxiliary data

  Files folder image Files (26)  /  source  
File Role Description
  Plain text file Login.php Class Class source
  Plain text file Register.php Class Class source
  Plain text file Session.php Class Class source
  Plain text file Validate.php Class Class source

  Files folder image Files (26)  /  sql  
File Role Description
  Accessible without login Plain text file registration-module.sql Data Auxiliary data

  Files folder image Files (26)  /  tests  
File Role Description
  Plain text file ExistsTest.php Class Class source
  Plain text file TestSession.php Class Class source
  Plain text file TestUser.php Class Class source

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
 Version Control Unique User Downloads Download Rankings  
 100%
Total:288
This week:1
All time:7,526
This week:57Up