PHP For Absolute Beginners | 6.5 Hour Course
This course is for absolute beginners and will give you a great kickstart to learning PHP. We'll first talk about what PHP is and why we should learn it, then we will setup a working environment and start coding This video covers all the basics: - How to declare Variables - How to work with strings, Arrays - How to work with file System - How to use cURL to fetch resources - Object Oriented PHP - Namespaces - Composer - Autoloading and much more... At the end of this course we will create a CRUD (CREATE, READ, UPDATE, DELETE) application 3 times. First, we will create it as beginner and see what PHP code looks like without best practices, then we will refactor our application and make it more optimal. We will learn how to use composer, autoloading and we'll create a mini MVC framework with custom routing and then build the final version of our CRUD application using the framework Code: Initial Source files: https://bit.ly/3jmfETf Final Source files: https://bit.ly/3dS9BEx The Codeholic YouTube Channel: https://www.youtube.com/channel/UC_UMEcP_kF0z4E6KbxCpV1w Official Docs: Numbers - https://bit.ly/2IMwiih Strings - https://bit.ly/2T3Prht Arrays - https://bit.ly/2H5NU8i File System - https://bit.ly/3jcjHkE Timestamps: 00:00:00 - Introduction 00:02:45 - Course Overview 00:06:19 - What is PHP and why you should learn it? 00:09:02 - Setup working environment 00:22:45 - PHP Syntax 00:25:50 - Comments 00:26:58 - Variables 00:35:45 - Numbers 00:47:53 - Strings 01:01:07 - Arrays 01:14:09 - Associative Arrays 01:21:44 - Conditionals (If-else, switch) 01:30:59 - Loops 01:38:22 - Functions 01:45:43 - Dates 01:50:36 - Including files 01:58:43 - Working with File System 02:08:01 - OOP 02:25:46 - cURL 02:33:53 - Start working on Products CRUD (bad version) 02:42:05 - Setup connection to database 02:45:36 - Select & display products from MySql 02:52:28 - Products CRUD: Creating Product functionality 02:56:50 - $_GET & $_POST 03:04:04 - Save data in MySql 03:13:45 - Form Validation 03:21:10 - Uploading Image 03:39:37 - Delete Product 03:46:01 - Update Product 03:58:22 - Product Search 04:02:24 - Improve Products CRUD: Code refactoring 04:38:30 - Namespaces & Autoloading with composer 04:49:10 - Install packages using composer 04:53:10 - MVC Framework with Custom Routing 04:56:15 - MVC Controllers 05:13:10 - MVC Views 05:31:25 - MVC Models 06:02:13 - Setup Apache Virtual Hosts 06:11:07 - Sessions 06:20:55 - Cookies