Skip to content
UdemyPhpPaid courseAll LevelsCertificate

APIs in PHP: from Basic to Advanced (Udemy.com)

Use REST APIs from PHP, and create your own RESTful API using plain PHP, with API key and JWT token authentication

Created by: Dave Hollingworth

Last updated April 2026

icon
What you will learn

  • Understand how APIs work
  • Learn how to use an API from PHP
  • Create an API from scratch in plain PHP
  • Create, Read, Update, Delete (CRUD) using an API
  • Understand what REST and RESTful APIs are
  • Create a RESTful API in PHP
  • Understand how different API authentication mechanisms work
  • Create API-key authentication for your API
  • Understand how JSON web tokens (JWTs) work, the advantages and disadvantages, and why we use them
  • Understand how HTTP requests and responses work

icon
Quality Score

No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 94 / 100

icon
Course Description

An API is a way for a program to interact with another program. By using third-party APIs from your code, you can utilise functionality developed elsewhere. By creating an API to access your own data, other programs can take advantage of your services in a secure and easy fashion.

Learn how to Use and Create Secure and Scalable APIs in PHP in this Comprehensive Course.

  • Understand how APIs work

  • Learn how to use an API from PHP

  • Understand how HTTP requests and responses work

  • Understand what REST and RESTful APIs are

  • Create a RESTful API from scratch, using plain PHP and MySQL

  • Understand how API authentication works

  • Add API key authentication to your API

  • Understand how JSON Web Tokens (JWTs) work

  • Add JWT access token authentication to your API

The essential skills required to use and develop APIs with PHP.

Unless you create every component of your application from scratch, your code will need to interact with external services - for example a payment gateway, or currency data. To use such services, you need to consume their APIs. On this course you'll learn how to do this from PHP, and also how to create an API so that external programs can interact with your application.

Content and Overview

This course is designed for the PHP developer who wants to learn in depth how to use APIs from their code. I designed the course to be easily understood by PHP developers who have no previous experience of using APIs, and who want to develop full, secure APIs quickly and easily. Learning the techniques on this course will enable you to create APIs that are secure, robust and that comply with industry standards.

  • Suitable for all PHP developers, you'll start by learning the basics of how APIs work.

  • You'll learn various techniques for consuming APIs from PHP, along with their advantages and disadvantages.

  • We'll build a full API from scratch, with each concept explained in detail at every stage.

  • You'll learn what REST and what RESTful APIs are, why we use them, and how to make your API RESTful.

  • Throughout the course, we'll build code that you can reuse in all your projects.

  • All the source code developed in the lectures is available to download.

  • All the time we'll adhere to industry standards and best practices.

  • Each section has short, self-contained lectures that you can go back to reinforce specific concepts if you need to.

When you complete the course you'll be able to use APIs in your PHP applications to leverage third-party components and services. You'll also be able to create your own API, using various authentication techniques depending on the type of API you want to create.

Complete with all the code shown in the lectures, you'll be able to work alongside the instructor and will receive a verifiable certificate of completion upon finishing the course.

Also, at all times throughout the course you have access to the instructor in the Q&A section to ask for help with any topic related to the course.

Enrol now and become a master of APIs in PHP!

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

Dave Hollingworth

  Hi, I'm Dave Hollingworth. I'm an IT trainer and web application developer. I've been programming for over thirty years, and teaching IT since 1999.

    I've developed enterprise-level applications on platforms ranging from mainframes to mobiles: from my first web application, a quotes system created for a major insurance company back in 1999 - the first of its type in the sector - to interactive learning management systems for online language learning. 

    I've taught courses ranging from basic use of email to advanced web application development, both online and in-person. I've been teaching on Udemy since 2012. 

    I'm passionate about technology, and love teaching it! I believe it's possible to explain even the most complex subjects in a simple, straightforward way that doesn't confuse the student. 

    I look forward to welcoming you onto one of my courses! 

icon
More courses by Dave Hollingworth

$99.99

$84.99

$99.99

$64.99

icon
More PHP courses

$54.99

$64.99

$94.99

$99.99

$64.99

$49.99

icon
Reviews

4.7

1,358 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By Vishal Saxena on 3/2/2025

I sincerely appreciate your efforts and the way you explain the application flows, different auth tokens concepts, and stitch all of them together to build working application example. Your clear and precise teaching style has made this course journey wonderful I really enjoyed through out the course Thanks Dave

By Larry O on 1/10/2025

Dave, Excellent course. All your courses have been excellent. This was may fourth course. I started out knowing nothing about API'a and JWT's,. Now, I have a much better understanding of API's and JWT's. Thank you for your detailed method of teaching and typing the code as you explain. I found that to be very helpful. And thank you for answering my questions in a timley manner. Cheers, Larry

By Eduardo Penroz on 8/7/2024

This was a fantastic course. I have some experience with PHP and in this course I was able to learn in great detail each of the functionalities that were implemented to build an API from scratch. Dave's way of teaching is very detailed with a clear explanation of each concept used. In addition, throughout the course he was always showing the documentation of the PHP functions that he was going to use, as well as the theory of each concept (JWT, HTTP methods, and so on). Thank you Dave for this course, and I will be taking the others soon.

By Mack Lim on 8/3/2023

I love this course. Dave's detailed explanations and constant narration while he typed make it incredibly easy to follow and understand. His pace, calm voice, and tone also suit my learning style perfectly. The course's requirements include knowledge of PHP, and I had zero PHP and HTTP knowledge before starting. However, Dave's explanations at every step made it very accessible for me to understand. As a result, I'm confident that I've grasped every aspect of what Dave aimed to teach about RESTful API in PHP. He not only demonstrated the coding process but also emphasized good practices like strict typing and code maintenance. I believe the final code produced in this course will serve as an excellent starting point for my project. Thank you, Dave, for this exceptional course!

By Andrew Kwabula on 7/12/2023

If I was to use just one word for Dave, it would be: Methodical! Dave is an EXCEPTIONAL Technology teacher. The guy knows PHP. Nothing is hurried, he is calm, speaks not slow and not fast, eliminating the need for constant rewinds. The course is super organised, building on previous steps. The code is clean, follows best practices.

By KUNYU CHANG on 7/2/2023

I have always believed that Dave's courses are deserving of a five-star rating, and I have purchased almost all of his courses. However, as mentioned by other students, it is regrettable that this course lacks a chapter on JWT security. Information security is indeed crucial, and I hope this chapter will be added as soon as possible in the future. Nonetheless, I still believe that Dave is truly the best person to teach PHP. Thank you very much!

By Markus Neeb on 11/14/2022

Hello Dave, just finished the course. After I saw one of your YouTube tutorials I landed here and was glad, that the journey went on. Took me nearly the whole week to code along but it was worth every minute. Always struggled with PHP and avoided API-stuff in general, sticking to my frontend-developer skills. In your course I learned so many things on every level and got insights I will surely build on. Your way to show every detail and explain everything is much appreciated. No magic moments like "You can look this up in the documentation!"... you just showed the documentation and lifted the veil EVERY time a new command was introduced. Thank you very much. I now lost my fear of PHP and APIs. :-)

By Kamil Çoban on 8/29/2022

TR : Eğitmen bazen hızlı olabiliyor fakat takıldığınız yerde sorduğunuz soruları mümkün olduğunca çabuk cevaplıyor. PHP'de API nasıl kullanılır ve nasıl oluşturulur merak ediyorsanız. Bu kursu alabilirsiniz. EN : The instructor can be quick sometimes, but he answers the questions you ask at the place where you get stuck as quickly as possible. If you are wondering how to use and create API in PHP, you can take this course.

By Agostinho Monteiro on 7/31/2022

After finished the course, the overall: - it is well organized - Majority of the video are well explained - in case of some thing you dont understand, the instructor will give an answer as soon as possible, in my question he respond within 24h, that was great. But what is missing: - a section about security, like CORS, CRSF, XSS, how you could protect JWTs, where store or not jwt - missing a section about routing ( with or without existing routing lib) and related best practice ( which a web api without good routing system is, to say the least bad in terms of security and organization) - more practical examples with front-end ( vanilla js and some js frameworks would be great)

By Thibault Dockx on 1/30/2022

Very accessible, although some PHP experience is more than recommended. Brilliant and well described, very inspiring. Highly recommend if you wish to develop a strong base for an API with JWT authentication using PHP 8 +. (Although easy to adapt if your infrastructure or clients only support 7.4).

Showing all 10 reviews on CourseDuck

Read all 1,358 reviews on Udemy