Udemy - Create a REST API using basic PHP with Token Authentication
- CategoryOther
- TypeTutorials
- LanguageEnglish
- Total size6.3 GB
- Uploaded Bytutsnode
- Downloads98
- Last checkedDec. 27th '20
- Date uploadedDec. 24th '20
- Seeders 14
- Leechers24
Description
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 – APRIL 2020 – 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 – JULY 2020 – 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.
Who this course is for:
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
Requirements
Fundamentals of PHP (including Object Oriented Programming concepts)
Fundamentals of Basic SQL Queries
Fundamentals of MySQL Database
Fundamentals of JSON (basic structure)
Last Updated 7/2020
Files:
Create a REST API using basic PHP with Token Authentication [TutsNode.com] - Create a REST API using basic PHP with Token Authentication 09 Token Based Authentication- 026 POST - Create a Session (Log user in API).mp4 (547.6 MB)
- 022 Introduction to Token Based Authentication.en.srt (17.4 KB)
- 022 Introduction to Token Based Authentication.mp4 (75.1 MB)
- 023 Users Table Creation.en.srt (7.1 KB)
- 023 Users Table Creation.mp4 (43.3 MB)
- 024 POST - Create a User (Sign up user API).en.srt (48.7 KB)
- 024 POST - Create a User (Sign up user API).mp4 (286.5 MB)
- 025 Sessions Table Creation.en.srt (8.4 KB)
- 025 Sessions Table Creation.mp4 (59.4 MB)
- 026 POST - Create a Session (Log user in API).en.srt (96.4 KB)
- 027 DELETE - Delete a Session (Log user out API).en.srt (29.9 KB)
- 027 DELETE - Delete a Session (Log user out API).mp4 (176.5 MB)
- 028 PATCH - Refresh a Session (Get new access token API).en.srt (56.7 KB)
- 028 PATCH - Refresh a Session (Get new access token API).mp4 (395.3 MB)
- 001 Introduction.en.srt (2.4 KB)
- 001 Introduction.mp4 (8.7 MB)
- 002 Course Contents.en.srt (3.6 KB)
- 002 Course Contents.mp4 (12.5 MB)
- 003 Project Scenario.en.srt (0.7 KB)
- 003 Project Scenario.mp4 (2.1 MB)
- 004 What is REST_.en.srt (11.4 KB)
- 004 What is REST_.mp4 (55.4 MB)
- 005 Software Set Up.en.srt (7.4 KB)
- 005 Software Set Up.mp4 (50.6 MB)
- 006 Tasks API Requirements.en.srt (5.3 KB)
- 006 Tasks API Requirements.mp4 (24.9 MB)
- 007 Authentication API Requirements.en.srt (3.6 KB)
- 007 Authentication API Requirements.mp4 (13.5 MB)
- 008 Demo of Completed API - What we are going to build.en.srt (31.4 KB)
- 008 Demo of Completed API - What we are going to build.mp4 (130.8 MB)
- 009 Tasks Database and Tasks Table Creation.en.srt (16.1 KB)
- 009 Tasks Database and Tasks Table Creation.mp4 (93.4 MB)
- 010 Set Up API Folder Structure.en.srt (6.4 KB)
- 010 Set Up API Folder Structure.mp4 (27.0 MB)
- 011 Create the Response Model.en.srt (45.2 KB)
- 011 Create the Response Model.mp4 (173.4 MB)
- 012 Set Up the Database Connection.en.srt (27.2 KB)
- 012 Set Up the Database Connection.mp4 (111.1 MB)
- 013 Create the Task Model.en.srt (36.5 KB)
- 013 Create the Task Model.mp4 (167.6 MB)
- 014 GET - Get a Single Task.en.srt (50.4 KB)
- 014 GET - Get a Single Task.mp4 (235.7 MB)
- 015 DELETE - Delete a Single Task.en.srt (9.2 KB)
- 015 DELETE - Delete a Single Task.mp4 (55.5 MB)
- 016 GET - Get All Complete and Incomplete Tasks.en.srt (20.6 KB)
- 016 GET - Get All Complete and Incomplete Tasks.mp4 (137.9 MB)
- 017 GET - Get All Tasks.en.srt (15.5 KB)
- 017 GET - Get All Tasks.mp4 (115.1 MB)
- 018 GET - Get All Tasks - With Pagination.en.srt (39.4 KB)
- 018 GET - Get All Tasks - With Pagination.mp4 (247.0 MB)
- 019 POST - Create a Task.en.srt (55.1 KB)
- 019 POST - Create a Task.mp4 (352.6 MB)
- 020 CompleteTasksAPI-NoUserAuth.zip (19.0 KB)
- 020 PATCH - Update a Task.en.srt (61.6 KB)
- 020 PATCH - Update a Task.mp4 (374.6 MB)
- 021 Review What We Have Done So Far.en.srt (2.1 KB)
- 021 Review What We Have Done So Far.mp4 (3.5 MB)
- 029 Update Tasks Table - Add User Assignment.en.srt (5.6 KB)
- 029 Update Tasks Table - Add User Assignment.mp4 (29.4 MB)
- 030 Add Authentication to Tasks API.en.srt (56.1 KB)
- 030 Add Authentication to Tasks API.mp4 (362.6 MB)
- 030 CompleteTasksAPI-WithUserAuth.zip (29.2 KB)
- 030 Slides.pdf (6.6 MB)
- 031 Course Conclusion and Demo Client Application.en.srt (15.4 KB)
- 031 Course Conclusion and Demo Client Application.mp4 (77.5 MB)
- 032 iOS Demo App Download.html (1.3 KB)
- 032 Task-iOS-Xcode-App.zip (60.7 KB)
- 033 What is CORS And How Do We Allow This On Our REST API.en.srt (22.6 KB)
- 033 What is CORS And How Do We Allow This On Our REST API.mp4 (82.0 MB)
- 034 Introduction to Image Uploading.en.srt (17.7 KB)
- 034 Introduction to Image Uploading.mp4 (56.6 MB)
- 035 Demo of Upload Image API.en.srt (23.0 KB)
- 035 Demo of Upload Image API.mp4 (88.5 MB)
- 036 Implement Folder Structure To Store The File Uploads.en.srt (7.9 KB)
- 036 Implement Folder Structure To Store The File Uploads.mp4 (25.4 MB)
- 037 Task Image Database Table Creation.en.srt (7.5 KB)
- 037 Task Image Database Table Creation.mp4 (35.8 MB)
- 038 Implement The Image Model.en.srt (42.3 KB)
- 038 Implement The Image Model.mp4 (172.2 MB)
- 039 Implement The Image Route Logic.en.srt (49.6 KB)
- 039 Implement The Image Route Logic.mp4 (215.9 MB)
- 040 POST - Implement The Upload Image Route.en.srt (79.4 KB)
- 040 POST - Implement The Upload Image Route.mp4 (425.1 MB)
- 041 GET - Implement The Get Image Attributes Route.en.srt (14.9 KB)
- 041 GET - Implement The Get Image Attributes Route.mp4 (78.4 MB)
- 042 GET - Implement The Getting Of The Actual Image File.en.srt (20.1 KB)
- 042 GET - Implement The Getting Of The Actual Image File.mp4 (109.9 MB)
- 043 PATCH - Implement The Update Image Attributes Route.en.srt (47.6 KB)
- 043 PATCH - Implement The Update Image Attributes Route.mp4 (279.0 MB)
- 044 DELETE - Implement The Image Deletion Route.en.srt (21.7 KB)
- 044 DELETE - Implement The Image Deletion Route.mp4 (132.6 MB)
- 045 TasksAPI-WithUserAuth
Code:
- udp://inferno.demonoid.pw:3391/announce
- udp://tracker.openbittorrent.com:80/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://torrent.gresille.org:80/announce
- udp://glotorrents.pw:6969/announce
- udp://tracker.leechers-paradise.org:6969/announce
- udp://tracker.pirateparty.gr:6969/announce
- udp://tracker.coppersurfer.tk:6969/announce
- udp://ipv4.tracker.harry.lu:80/announce
- udp://9.rarbg.to:2710/announce
- udp://shadowshq.yi.org:6969/announce
- udp://tracker.zer0day.to:1337/announce