This Codeigniter library is useful for authenticate to your API.
Download this repository.
- Navigate to
application/libraries
and placeAccess.php
file into your project'sapplication/libraries
folder. - Navigate to
applicatin/core
and placeAUTH_Controller.php
file to your project'sapplication/core
folder. - Now just create a controller in
application/controller
that extendsAUTH_Controller
Write the code like below:
class Api extends AUTH_Controller {
public function __construct(){
parent::__construct();
}
public function index(){
// Your method code here.
}
}
Example API is in application/controller/Api.php
Any suggestions are most welcome. :)
Author: Ravi Kumar
Licence: MIT
Usability: Public
First Commit: 08/Jul/2018 (IST)