Course Information
- Available
- *The delivery and distribution of the certificate are subject to the policies and arrangements of the course provider.
Course Overview
Develop a real world REST API with login - Basic PHP and MySQL (no frameworks needed) - following a real world scenario.
In this course I will be showing you how to create RESTful web services with PHP, no third party frameworks or paid software is needed.
We will be covering the basics of what REST is and how to implement the basics using pure vanilla PHP, at the end of this course you should be able to create a basic RESTful web service that you can allow other people to use.
The course will follow a scenario that we have been given and that is to implement a web service which can record a list of tasks, basically a to-do list. We will be implementing each requirement one at a time and then we will add on the ability for this API to become a multi user service. So each user can securely have their own task list.
To do this we will be implementing an authentication concept called Token based authentication and we will be exploring this further within the course, Token based authentication is a lot more secure than just basic password authentication and is now a best practice among the industry.
We will be starting at the beginning and building as we go, as long as you know the basics of PHP, such as variables, if statements, loops, arrays and some basic object orientated programming concepts you should be able to follow this course to the end. We will also be using MySQL for the database to store the tasks and we will be building and changing the database as we go, and again you don't need to be an expert on MySQL but just need to know the fundamentals such as basic select, update, delete SQL statements and concepts such as primary keys and foreign keys.
BONUS SECTION ADDED - for CORS (Cross-Origin Resource Sharing) which will allow you to adjust this API to run on a different domain/subdomain than your front end application.
BONUS SECTION ADDED - for teaching you how to upload images/files against a task, we will go through the changes we need to make to the API to allow uploading of images to a task. We will then allow you to associate image attributes such as title and filename against the image as well as being able to download the image and delete the image.
Course Content
- 13 section(s)
- 45 lecture(s)
- Section 1 Introduction
- Section 2 REST
- Section 3 Set up
- Section 4 API Requirements
- Section 5 Demo
- Section 6 Tasks API Set Up
- Section 7 Tasks API Endpoint Implementation
- Section 8 Mid Course Review
- Section 9 Token Based Authentication
- Section 10 Refactor Tasks API to Include Authentication
- Section 11 Conclusion
- Section 12 BONUS: Cross-Origin Resource Sharing (CORS) Setup
- Section 13 BONUS: Allow image upload against a task
What You’ll Learn
- How to build a REST web services (API) with plain PHP (no frameworks required)
- What Token Based Authentication is and why it is better than Basic Authentication
- Fundamental Principles of REST
- API Testing using Postman App
- How to upload and delete files using a REST API
Reviews
-
SSam
The information is excellent and very complete! But I wish the it was a dark theme for some of the videos so that it's easier on the eyes. Also, not sure why Udemy styled the website to be half white/dark. Can't even invert colors properly with a filter to achieve a nice dark theme. Make the site all white or dark. Lastly, not all videos in Udemy play on Brave browser. Every course in Udemy has this issue. It's kind of weird that some videos play fine and other do not. This is definitely an issue with the site. Tried everything and mobile app sucks. Most of my critic is with the Udemy site, not with the course itself. The course is great!
-
JJoe Todd
Great course! I understand some PHP and MySQL, but the implementation of REST has all been new. This course clearly explains the concepts and uses a realistic application to show implementation details. If you can already code, after completing this course you will also be able to code REST implementations.
-
AAli
Best course for creating a REST API. All techniques are explained clearly and understandably from the beginning. All important topics for creating an API are included. Great instructor. I would really like to see more PHP courses from Michael Spinks, PLEASE
-
MMosab Alzoubi
i love the walk throw id like more explanation i had to search some of the things i was typing