Chriskacerguis - Codeigniter-Restserver - A Fully RESTful Server Implementation For CodeIgniter Using One Library, One Config File and One Controller
Chriskacerguis - Codeigniter-Restserver - A Fully RESTful Server Implementation For CodeIgniter Using One Library, One Config File and One Controller
chriskacerguis / codeigniter-restserver
A fully RESTful server implementation for CodeIgniter using one library, one config file and one
controller.
MIT License
Star Watch
master
chriskacerguis … on Feb 28
View code
CodeIgniter RestServer
StyleCI passed
A fully RESTful server implementation for CodeIgniter using one library, one config file and
one controller.
Requirements
PHP 7.2 or greater
CodeIgniter 3.1.11+
Installation
README.md
composer require chriskacerguis/codeigniter-restserver
Usage
https://github.com/chriskacerguis/codeigniter-restserver 1/4
5/2/2021 chriskacerguis/codeigniter-restserver: A fully RESTful server implementation for CodeIgniter using one library, one c…
"chriskacerguis/codeigniter-restserver": "^3.1"
or run
Note that you will need to copy rest.php to your config directory (e.g.
application/config )
Step 1: Add this to your controller (should be before any of your code)
use chriskacerguis\RestServer\RestController;
Here is a basic example. This controller, which should be saved as Api.php , can be called
in two ways:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
use chriskacerguis\RestServer\RestController;
function __construct()
{
// Construct the parent class
parent::__construct();
}
https://github.com/chriskacerguis/codeigniter-restserver 2/4
5/2/2021 chriskacerguis/codeigniter-restserver: A fully RESTful server implementation for CodeIgniter using one library, one c…
Releases 21
+ 20 releases
Packages
https://github.com/chriskacerguis/codeigniter-restserver 3/4
5/2/2021 chriskacerguis/codeigniter-restserver: A fully RESTful server implementation for CodeIgniter using one library, one c…
No packages published
Used by 1.3k
+ 1,328
Contributors 146
+ 135 contributors
Languages
https://github.com/chriskacerguis/codeigniter-restserver 4/4