This tutorial aims to give you an in-depth introduction to PHP
(PHP 7 version) by building a simple CRUD REST API.
Also read: How to implement JWT authentication and access the
Authorization header in PHP
You'll also learn about important concepts such as CRUD
operations and PHP PDOs etc.
In this PHP 7 tutorial, we're going to learn by example how to
create a REST API with PHP 7 and MySQL. We'll see example
implementations for HTTP GET and HTTP POST methods and we'll use
json_encode() to return data in JSON format.
The REST API, we'll be creating in this tutorial, will be the
basis of the next tutorials for adding JWT-based authentication
and building your front-ends with modern JavaScript/TypeScript
frameworks and libraries such as Angular, React.js and Vue.js
etc.
In this tutorial we'll create an example CRUD (Create, Read,
Update and Delete) PHP application that implements the equivalent
HTTP API …
[Read more]