| Ratings |   | Unique User Downloads |   | Download Rankings | 
| Not yet rated by the users |  | Total: 288  |  | All time:  7,528 This week: 60  | 
 | 
| 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.  |  | 
  | 
 | 
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

> 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 :
- 
PHP > 5.6
 
- 
MySQL
 
- 
Composer or npm or git
 
Installation :
- 
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
 
- 
Rename `config\database.example.php` to `config\database.php` and Change credential in `config\database.php`
 
- 
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
 
- 
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
 
 
|   | 
Applications that use this package | 
  | 
No pages of applications that use this class were specified.
 If you know an application of this package, send a message to the author to add a link here.