4.57 out of 5
4.57
7 reviews on Udemy

Learn to build a REST API with vanilla PHP with Basic Auth

Learn how to build REST API with PHP with Basic Authentication by building an inspirational quote REST API
Instructor:
Kusi Musah Hussein
186 students enrolled
Be able to develop a REST API with vanilla PHP (No Framworks)
Understand how to implement basic authentication in vanilla php
Be able to build pretty URL's (avoiding .php extensions on URLS)
Understand more clearly how REST API works
Build an Inspirational Quote REST API from scratch

This course will teach you step by step how to develop a REST API with only the PHP programming language without any Frameworks. You will also learn how to integrate a basic authorization to your REST API. The Inspirational Quotes API project that is built along the project helps in easy understanding.

Introduction

1
Introduction
2
The Quote API Project Introduction
3
Software tools to be used Introduction

Quotes API MYSQL Setup

1
Database Setup Upload (Shortcut)
2
Database Tables and Mockaroo
3
Database build Categories
4
Generating Quotes Rows
5
Generate User Rows

Folder Structure of Quote API Project

1
Folder Structure of Quote API Project

The Database Class Development

1
Database Class Setup
2
Database Fetch Methods
3
Database Execute Call Method 1
4
Database Execute Call Method 2
5
Database Execute Call Method Corrections
6
Database Other Relevant Methods

HttpResponse Class

1
HttpResponse Class' Error Methods
2
HttpResponse Class OK (Success) method

The Quote Class

1
Quote Class Setup
2
Quote Class Insert Update and Delete
3
Quote Class Random and User Fetch Methods

The User Class

1
The User Class 1
2
The User Class 2

Handling Request coming to the quotes endpoint

1
Setup Of Index File
2
Setting up Basic Authentication
3
Checking and Handling GET Requests
4
Sending REST API Results on GET Requests
5
Checking and Handling POST Requests
6
Handling PUT Requests 1
7
Handling PUT Requests 2
8
Checking and Handling DELETE Requests
9
Handling Random Fetch Feature
10
Handling the Fetch of Quotes of a particular user

User Endpoint For Registering new users

1
Handling new User

Converting URLS to their pretty versions

1
Rewritting Endpoints to pretty urls

Bonus Lectures

1
Bonus | Sort Quote Feature

Where to

1
Where to
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.6
4.6 out of 5
7 Ratings

Detailed Rating

Stars 5
4
Stars 4
2
Stars 3
1
Stars 2
0
Stars 1
0
09caf7f030603fe15b5df92ca19f3286
30-Day Money-Back Guarantee

Includes

5 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion