CodeIgniter 4 REST API JWT Authentication

Table of Contents Introduction Prerequisites Project Directory MySQL Table Database Configuration Route Configuration Model Controller Library Testing CodeIgniter 4 REST JWT Source Code Introduction In this example I will show you how to use JWT (JSON Web Token) in CodeIgniter 4 REST API for authenticating/authorizing a user when he/she is trying to access REST API. A user must register in…

CodeIgniter 4 REST API, MySQL and Angular 10 CRUD Example

I am going to show you an example on Angular CodeIgniter 4 REST API MySQL CRUD. CRUD is an acronym and stands for Create, Read, Update and Delete operations. REST or RESTful is a Representational State Transfer which defines an architectural style in software engineering. The REST API works on HTTP or HTTPS protocol. The Angular framework will be used…

REST API CRUD Example in CodeIgniter 4 Framework

Here I am going to show you how to build REST web services in PHP based Codeigniter 4 framework. CodeIgniter 4 is the upcoming version of the framework and it is still under development, intended for use with PHP 7.2 or higher version. REST is an acronym that stands for Representational State Transfer (RESTful), which is an architectural style for…

Angular + CodeIgniter File Upload Example

Introduction Angular + CodeIgniter file upload example will show here how to upload a file to server. Here CodeIgniter will be responsible for storing the file into a server location and Angular will be used on UI side to interact with end users, who will browse and select a file for uploading. We will create CodeIgniter REST API and will…

Codeigniter REST + ReactJS CRUD Example

Introduction Here we will see Codeigniter REST + ReactJS CRUD example. We have seen previously Codeigniter REST API examples for GET, POST, PUT and DELETE but here we will see them together. We will use ReactJS as a front-end technology to represent our UI. In this example we will use Codeigniter version 3.1.9 and node version 6.11.3 and npm version 3.10.10. We…

AngularJS Codeigniter REST CRUD Example

In this Codeigniter AngularJS CRUD example, we will see the integration of AngularJS with Codeigniter REST. We are going to create CRUD application using Codeigniter REST API on server side and AngularJS is encapsulated within PHP file on client side. Thus the client will communicate with server asynchronously using AngularJS $http service. Please read the following tutorials before reading this…

Working With RESTful Services in Codeigniter 3 – DELETE Example

Introduction In this tutorial I am going to show you how you can work with RESTful or REST webservice in Codeigniter framework. I am going to use HTTP method DELETE to delete resource from server side. Related Posts: Working with RESTful services in Codeigniter – GET example Working with RESTful services in Codeigniter – POST example Working with RESTful services…

Working With RESTful Services In Codeigniter 3 – POST Example

Introduction In this tutorial I am going to show you how you can work with RESTful or REST webservice in Codeigniter framework. I will build a REST API for HTTP POST method. The HTTP POST method is used to create a new resource in server side. Related Posts: Working with RESTful services in Codeigniter – PUT example Codeigniter GET example…

Working With RESTful Services in Codeigniter 3 – GET Example

Introduction In this tutorial I am going to show you how you can work with RESTful or REST webservice in Codeigniter framework. I am going to use HTTP method GET to fetch data from database server. Related Posts: Working with RESTful services in Codeigniter – POST example Working with RESTful services in Codeigniter – PUT example Working with RESTful services…