Skip to content

Ravi448/codeigniter-rest-api-authentication-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST-API Authentication in codeigniter.

Library

This Codeigniter library is useful for authenticate to your API.

Download this repository.

Steps

  1. Navigate to application/libraries and place Access.php file into your project's application/libraries folder.
  2. Navigate to applicatin/core and place AUTH_Controller.php file to your project's application/core folder.
  3. Now just create a controller in application/controller that extends AUTH_Controller

Write the code like below:

class Api extends AUTH_Controller {
    public function __construct(){
        parent::__construct();
    }

    public function index(){
       // Your method code here.
    }
    
}

Example

Example API is in application/controller/Api.php

Improvement

Any suggestions are most welcome. :)

info

Author: Ravi Kumar
Licence: MIT
Usability: Public
First Commit: 08/Jul/2018 (IST)

About

A library for Rest api authentication in codeIgniter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published