Create a REST API using basic PHP with Token Authentication
Create a REST API using basic PHP with Token Authentication, available at $19.99, has an average rating of 4.71, with 45 lectures, based on 871 reviews, and has 4583 subscribers.
You will learn about 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 This course is ideal for individuals who are PHP developers who would like to build Web Service APIs using only core PHP (no frameworks) or PHP developers interested in adding Token Based Authentication to their APIs or PHP developers interested in how you upload files using APIs It is particularly useful for PHP developers who would like to build Web Service APIs using only core PHP (no frameworks) or PHP developers interested in adding Token Based Authentication to their APIs or PHP developers interested in how you upload files using APIs.
Enroll now: Create a REST API using basic PHP with Token Authentication
Summary
Title: Create a REST API using basic PHP with Token Authentication
Price: $19.99
Average Rating: 4.71
Number of Lectures: 45
Number of Published Lectures: 45
Number of Curriculum Items: 45
Number of Published Curriculum Objects: 45
Original Price: £19.99
Quality Status: approved
Status: Live
What You Will 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
Who Should Attend
- PHP developers who would like to build Web Service APIs using only core PHP (no frameworks)
- PHP developers interested in adding Token Based Authentication to their APIs
- PHP developers interested in how you upload files using APIs
Target Audiences
- PHP developers who would like to build Web Service APIs using only core PHP (no frameworks)
- PHP developers interested in adding Token Based Authentication to their APIs
- PHP developers interested in how you upload files using APIs
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 Curriculum
Chapter 1: Introduction
Lecture 1: Introduction
Lecture 2: Course Contents
Lecture 3: Project Scenario
Chapter 2: REST
Lecture 1: What is REST?
Chapter 3: Set up
Lecture 1: Software Set Up
Chapter 4: API Requirements
Lecture 1: Tasks API Requirements
Lecture 2: Authentication API Requirements
Chapter 5: Demo
Lecture 1: Demo of Completed API – What we are going to build
Chapter 6: Tasks API Set Up
Lecture 1: Tasks Database and Tasks Table Creation
Lecture 2: Set Up API Folder Structure
Lecture 3: Create the Response Model
Lecture 4: Set Up the Database Connection
Lecture 5: Create the Task Model
Chapter 7: Tasks API Endpoint Implementation
Lecture 1: GET – Get a Single Task
Lecture 2: DELETE – Delete a Single Task
Lecture 3: GET – Get All Complete and Incomplete Tasks
Lecture 4: GET – Get All Tasks
Lecture 5: GET – Get All Tasks – With Pagination
Lecture 6: POST – Create a Task
Lecture 7: PATCH – Update a Task
Chapter 8: Mid Course Review
Lecture 1: Review What We Have Done So Far
Chapter 9: Token Based Authentication
Lecture 1: Introduction to Token Based Authentication
Lecture 2: Users Table Creation
Lecture 3: POST – Create a User (Sign up user API)
Lecture 4: Sessions Table Creation
Lecture 5: POST – Create a Session (Log user in API)
Lecture 6: DELETE – Delete a Session (Log user out API)
Lecture 7: PATCH – Refresh a Session (Get new access token API)
Chapter 10: Refactor Tasks API to Include Authentication
Lecture 1: Update Tasks Table – Add User Assignment
Lecture 2: Add Authentication to Tasks API
Chapter 11: Conclusion
Lecture 1: Course Conclusion and Demo Client Application
Lecture 2: iOS Demo App Download
Chapter 12: BONUS: Cross-Origin Resource Sharing (CORS) Setup
Lecture 1: What is CORS And How Do We Allow This On Our REST API
Chapter 13: BONUS: Allow image upload against a task
Lecture 1: Introduction to Image Uploading
Lecture 2: Demo of Upload Image API
Lecture 3: Implement Folder Structure To Store The File Uploads
Lecture 4: Task Image Database Table Creation
Lecture 5: Implement The Image Model
Lecture 6: Implement The Image Route Logic
Lecture 7: POST – Implement The Upload Image Route
Lecture 8: GET – Implement The Get Image Attributes Route
Lecture 9: GET – Implement The Getting Of The Actual Image File
Lecture 10: PATCH – Implement The Update Image Attributes Route
Lecture 11: DELETE – Implement The Image Deletion Route
Lecture 12: Update Current Task API To Integrate Images
Instructors
-
Michael Spinks
Mobile systems developer and all round full stack engineer
Rating Distribution
- 1 stars: 7 votes
- 2 stars: 10 votes
- 3 stars: 62 votes
- 4 stars: 237 votes
- 5 stars: 555 votes
Frequently Asked Questions
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
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!
You may also like
- Top 10 Language Learning Courses to Learn in November 2024
- Top 10 Video Editing Courses to Learn in November 2024
- Top 10 Music Production Courses to Learn in November 2024
- Top 10 Animation Courses to Learn in November 2024
- Top 10 Digital Illustration Courses to Learn in November 2024
- Top 10 Renewable Energy Courses to Learn in November 2024
- Top 10 Sustainable Living Courses to Learn in November 2024
- Top 10 Ethical AI Courses to Learn in November 2024
- Top 10 Cybersecurity Fundamentals Courses to Learn in November 2024
- Top 10 Smart Home Technology Courses to Learn in November 2024
- Top 10 Holistic Health Courses to Learn in November 2024
- Top 10 Nutrition And Diet Planning Courses to Learn in November 2024
- Top 10 Yoga Instruction Courses to Learn in November 2024
- Top 10 Stress Management Courses to Learn in November 2024
- Top 10 Mindfulness Meditation Courses to Learn in November 2024
- Top 10 Life Coaching Courses to Learn in November 2024
- Top 10 Career Development Courses to Learn in November 2024
- Top 10 Relationship Building Courses to Learn in November 2024
- Top 10 Parenting Skills Courses to Learn in November 2024
- Top 10 Home Improvement Courses to Learn in November 2024