Object Oriented PHP & TDD with PHPUnit from Scratch

Learn Object Oriented PHP & Test Driven Development using PHPUnit - Project Included

Intermediate 4.6(50 Ratings) 6,961 Students enrolled
Created by Devscreencast Elearning Last updated 06/2019 English English [Auto-generated]
What will i learn?
  • Learn test-driven development (TDD)
  • Understand Object Oriented PHP
  • Learn how to write unit tests using PHPUnit
  • Learn how and why you should use dependency invasion principle (DIP) and dependency injection
  • Build a scalable object oriented PHP application
  • Implement some common design patterns using PHP
  • Build a database wrapper with support for PDO and MySQLi

Curriculum for this course
68 Lectures 12:15:26
PHP Object-Oriented Bootcamp
15 Lectures 02:31:37
  • Introduction 00:00:48
  • PHP Classes and Objects 00:13:16
  • Bootstrapping An Object 00:07:38
  • Encapsulation 00:13:40
  • Object Inheritance 00:09:58
  • Static Methods & Properties 00:07:40
  • Method Chaining 00:05:41
  • Abstract Classes (Database Case Study) 00:13:26
  • Abstract Classes (Database Case Study) - Conclusion 00:18:31
  • Object Interfaces (Predator and Prey Case Study) 00:18:51
  • Late Static Binding 00:03:13
  • Namespacing and Better Autoloading 00:16:07
  • Simple OOP Project: Grading Class Overview 00:03:05
  • Simple OOP Project: Compute Student Semester Result Class 00:12:59
  • Simple OOP Project: Using The Compute Student Semester Result Class 00:06:44
  • How to Get Help 00:00:20 Download Complete Source code 00:00:16
  • Section Introduction 00:00:59
  • Creating Core Project Folders 00:04:24
  • Autoloading and Installing PHPUnit 00:08:32
  • Working with config files 00:17:33
  • Creating Application Helper Class 00:14:00
  • Custom Exception Handler 00:09:23
  • Custom Exception Classes 00:06:52
  • Convert PHP Warnings and Notices to Exceptions 00:08:47
  • PSR-3: Logger Interface 00:08:03
  • Concrete Implementation of Logger Interface 00:14:51
  • Logging 00:05:05
  • Creating a Test Class and Writing a Test 00:06:36
  • Creating a PHPUnit Configuration file 00:07:25
  • Unit Testing The App Class 00:10:20
  • Unit Testing The Logger Class 00:13:38
  • Database Abstraction UML Diagram 00:05:36
  • Test Driven Database Connection - Part 1 00:24:35
  • Test Driven Database Connection - Part 2 PDO 00:20:17
  • Test Driven Database Connection - Part 3 MySQLi 00:10:11
  • Building a Database Query Builder Intro with Test Cases 00:12:04
  • Abstract Database Query Builder with TDD - Part 1 00:12:20
  • Abstract Database Query Builder with TDD - Part 2 00:18:49
  • Abstract Database Query Builder with TDD - Part 3 00:17:32
  • Adding Abstract Methods In Query Builder Class 00:05:54
  • Implementing Abstract Methods for PDO API 00:06:38
  • Implementing Abstract Methods for MySQLi API 00:26:26
  • Implement Insert, Raw Query, find and findOne Methods and Test cases 00:19:39
  • Implement Delete and Update Methods 00:03:20
  • Creating a Database Query Builder Factory 00:06:04
  • Automatically Cleanup the Database for Each New Test 00:18:47
  • Adding More Test Cases 00:16:21
  • Query Builder Cleanup and Bug Fixes 00:13:44
  • The concept of Entities and Repository Pattern 00:05:17
  • Writing Test cases for Entities and Repository 00:19:37
  • Creating an Entity 00:13:33
  • Repository Pattern Part 1 - Interface 00:06:03
  • Repository Pattern Part 2 - Abstract and Concrete 00:18:13
  • Making Test Cases Pass and Adding new Test 00:17:20
  • Section Introduction 00:00:52
  • Setup Functional Test for CRUD 00:05:28
  • Writing Test Case for Create Bug Report with POST Request 00:16:54
  • Writing Test Case for Update and Delete Bug Report with POST Request 00:08:27
  • Building a Simple HTTP Request Client to make our Test Cases Pass 00:16:59
  • Processing Add Bug Report Post Request 00:13:05
  • Logging During Request Life Cycle and Exception Handling 00:06:57
  • Refactoring, Debugging and Making Add Report Test Pass 00:13:48
  • Processing Update Delete and Read Requests and Going Green with All Test Cases 00:16:39
  • User Interface - Part 1 00:15:27
  • User Interface - Part 2 00:08:07
  • Testing that We Can Visit The Homepage and See Certain Data 00:04:41
  • Next Step 00:01:37
Requirements
  • Basic knowledge of PHP
  • Basis Knowledge of PDO or MySQLi
  • PHP 7 or Higher
+ View more
Description

As a PHP developer it won't take long to realize that there are dozens of outdated tutorials and articles on the internet, if you want to learn how to write better code with fewer bugs, you will need to know how to write clean object oriented code and unit tests.

This course is designed to get you up and running as fast as possible with Test Driven Development with object oriented PHP and PHPUnit without any dependencies. We'll quickly cover OOP basics, then dive into some of the more advanced features of the language. Don't be tricked by other courses that only teach you basic and outdated stuff!

This is the only course on Udemy that will teach you Test Driven Development in Object Oriented PHP and PHPUnit. This course will give you ample opportunities to strike out on your own and start working on your own programs.

In this course you will:

  • Understand Object Oriented PHP

  • Learn test-driven development (TDD)

  • Learn how and why you should use dependency inversion principle and dependency injection

  • Implement some common design patterns using PHP

  • Build a database wrapper with support for PDO and MySQLi

  • Gain a sense of when to use basic language features

PHP is one of the most popular and widely used programming languages. Get job-ready with PHP today by enrolling now!

+ View more
Other related courses
02:38:43
3.8 66 $149.99 Free
08:53:47
3.8 50 Free
01:31:27
Updated Wed, 20-Nov-2019
4.1 38 $149.99 Free
01:45:50
4.1 25 $94.99 Free
04:45:08
4.1 24 Free
01:04:45
4.1 17 Free
03:48:48
4.4 12 $19.99 Free
05:25:07
4.4 22 Free
01:10:37
4.1 10 Free
03:52:13
Updated Mon, 02-Sep-2019
4.1 19 $99.99 Free
04:28:09
4.3 17 $19.99 Free
06:19:49
4.4 14 Free
01:52:35
4 22 $74.99 Free
01:39:41
3.7 14 $79.99 Free
02:09:40
4.2 15 Free
01:01:33
4.2 12 $199.99 Free
51:12:35
4.2 18 $199.99 Free
02:23:35
Updated Tue, 09-Jul-2019
3.7 11 $99.99 Free
01:13:12
4.3 19 $139.99 Free
01:31:26
4.3 18 $139.99 Free
00:58:35
4.1 13 $94.99 Free
03:15:34
4.2 16 $199.99 Free
01:15:31
4.2 5 Free
00:44:15
4.5 6 $199.99 Free
03:36:22
4.7 1 Free
16:47:11
3.6 13 Free
03:09:33
Updated Sun, 03-Sep-2017
3.8 16 Free
02:07:36
3.9 1 Free
04:37:27
3.8 2 Free
02:14:18
Updated Fri, 23-Mar-2018
3.7 8 Free
02:23:03
4.3 5 Free
06:22:46
Updated Wed, 23-Mar-2016
4.1 1 Free
04:17:53
4.4 13 Free
00:57:12
3.4 11 Free
02:13:31
4.1 7 Free
12:52:08
3.5 6 Free
01:00:01
Updated Sat, 21-Dec-2019
2.3 4 Free
04:32:16
3.7 2 Free
03:41:40
4.3 3 Free
04:23:54
3.8 1 Free
02:12:25
4.3 0 Free
01:03:10
Updated Fri, 06-Dec-2019
3.9 2 Free
03:33:25
4.1 9 Free
02:43:49
4.4 0 Free
02:00:25
4.5 0 Free
01:10:58
3.8 8 Free
02:55:06
4.2 4 Free
00:36:19
Updated Tue, 28-Mar-2017
3.5 1 Free
02:18:52
4.1 13 Free
00:31:06
Updated Mon, 13-Nov-2017
3.6 6 Free
00:50:23
4 2 Free
02:27:52
Updated Wed, 07-Aug-2019
4.2 6 Free
00:50:19
3.7 4 $129.99 Free
01:49:58
3.9 9 $139.99 Free
01:17:39
Updated Thu, 26-Dec-2019
0 3 Free
03:42:56
4 12 $199.99 Free
02:01:15
Updated Mon, 23-Dec-2019
3.9 2 $199.99 Free
01:40:29
Updated Mon, 23-Dec-2019
3.7 5 $199.99 Free
02:15:39
Updated Mon, 23-Dec-2019
3.1 8 $19.99 Free
02:18:14
4.2 5 $129.99 Free
01:31:32
Updated Mon, 23-Dec-2019
3.8 2 $19.99 Free
01:24:32
Updated Mon, 23-Dec-2019
3.8 2 $19.99 Free
01:30:20
Updated Mon, 23-Dec-2019
3.5 4 $19.99 Free
01:19:56
Updated Mon, 23-Dec-2019
3.5 5 $19.99 Free
00:59:13
Updated Mon, 23-Dec-2019
3.2 4 $19.99 Free
01:01:52
Updated Mon, 23-Dec-2019
3.4 5 $19.99 Free
01:53:25
Updated Mon, 23-Dec-2019
3.4 7 $19.99 Free
02:17:41
Updated Mon, 23-Dec-2019
3.5 7 $19.99 Free
00:47:39
Updated Mon, 23-Dec-2019
3.7 5 $19.99 Free
00:41:25
Updated Mon, 23-Dec-2019
3.5 4 $19.99 Free
01:00:48
Updated Mon, 23-Dec-2019
3.4 6 $19.99 Free
00:33:47
Updated Mon, 23-Dec-2019
3.6 3 $19.99 Free
01:09:52
Updated Mon, 23-Dec-2019
3.4 7 $199.99 Free
00:40:16
Updated Mon, 23-Dec-2019
3.2 7 $199.99 Free
00:49:55
Updated Mon, 23-Dec-2019
3.6 3 $199.99 Free
02:34:03
4 5 Free
24:16:36
4.2 36 $199.99 Free
00:37:00
3.6 2 $99.99 Free
07:52:29
0 14 $114.99 Free
05:38:23
Updated Sat, 17-Aug-2019
4.3 3 $34.99 Free
01:20:14
Updated Tue, 14-May-2013
4 0 Free
05:57:07
3.7 10 $159.99 Free
05:26:39
0 17 $39.99 Free
00:37:17
3.9 5 $99.99 Free
06:23:22
2.5 17 Free
08:33:58
3.9 12 $19.99 Free
27:55:46
4.5 7 $199.99 Free
47:29:47
Updated Tue, 31-Dec-2019
4.6 93 $179.99 Free
03:32:49
Updated Sat, 28-Sep-2019
4.6 18 $49.99 Free
14:59:04
4.7 8 $199.99 Free
13:30:15
Updated Thu, 26-Dec-2019
4.5 23 $149.99 Free
28:04:40
4.7 44 $199.99 Free
10:22:00
4.6 14 $119.99 Free
14:51:23
4.2 78 $194.99 Free
46:24:20
Updated Thu, 12-Dec-2019
4.6 161 $199.99 Free
05:30:27
4 15 $159.99 Free
04:17:37
4 2 Free
03:59:09
4.7 3 Free
03:41:47
3 11 Free
04:00:56
4.1 2 $149.99 Free
03:35:47
4.2 8 $199.99 Free
22:12:56
4 9 $199.99 Free
08:03:16
4.3 10 Free
10:51:38
3.3 3 $199.99 Free
14:41:03
4.2 9 Free
04:35:13
3.8 3 Free
39:30:00
4 14 Free
04:32:42
3.8 12 Free
05:32:51
4.4 1 Free
06:43:19
Updated Sun, 04-Aug-2019
4.1 2 Free
03:20:40
4.2 6 Free
05:51:57
Updated Sat, 16-Nov-2019
4.1 14 Free
18:45:45
Updated Tue, 24-Sep-2019
4.6 3 Free
04:47:30
4.1 12 Free
02:39:55
3.7 13 Free
13:17:19
3.8 14 $124.99 Free
01:18:41
Updated Mon, 23-Dec-2019
0 8 $19.99 Free
14:40:08
4.1 11 Free
01:18:30
Updated Sun, 12-Jan-2020
0 4 Free
03:09:37
3.9 11 Free
08:12:53
4.7 6 $39.99 Free
21:42:23
Updated Sun, 08-Dec-2019
4.6 13 $174.99 Free
02:18:00
4.3 6 $129.99 Free
14:34:08
4.6 14 $149.99 Free
17:04:39
Updated Thu, 26-Dec-2019
4.5 13 $109.99 Free
23:53:13
4.5 7 $94.99 Free
11:00:44
4.5 8 $149.99 Free
12:36:12
4.6 19 $149.99 Free
05:49:54
Updated Sun, 03-Nov-2019
4.6 11 $109.99 Free
10:11:39
4 9 $49.99 Free
02:52:39
Updated Fri, 10-Jan-2020
3 5 Free
01:06:37
Updated Sun, 19-Jan-2020
4.1 6 $19.99 Free
00:55:55
4.9 3 Free
01:57:08
4.3 7 $199.99 Free
05:05:38
Updated Sun, 10-Aug-2014
4 1 Free
00:58:40
Updated Wed, 20-Nov-2019
4.2 6 Free
06:20:09
4.2 5 Free
29:24:58
4.1 11 Free
01:19:25
3.2 5 Free
00:45:46
Updated Wed, 06-Nov-2019
2 2 $19.99 Free
09:10:22
4.4 11 Free
01:20:24
4 4 Free
03:51:23
3.8 2 Free
00:40:21
Updated Thu, 22-Aug-2019
3.2 3 Free
02:07:04
Updated Tue, 14-Aug-2018
0 5 Free
02:19:58
Updated Sun, 02-Jun-2019
3.2 3 Free
01:51:26
Updated Mon, 13-Jan-2020
0 9 $99.99 Free
03:04:46
Updated Wed, 22-Jan-2020
4.3 6 Free
01:57:15
Updated Fri, 29-Sep-2017
4.3 3 Free
08:16:39
4.3 10 $174.99 Free
06:41:57
4.1 8 $174.99 Free
07:58:41
4.4 3 $194.99 Free
01:08:54
4 2 Free
01:25:26
4 3 Free
00:31:50
Updated Tue, 07-Jan-2020
3.8 1 Free
02:21:42
0 2 $179.99 Free
02:51:06
3.5 2 Free
02:26:30
Updated Sat, 25-Jan-2020
3.6 2 $99.99 Free
00:36:04
3.4 1 Free
03:10:29
4 8 Free
42:10:51
4.7 19 $199.99 Free
01:55:44
4.3 7 $99.99 Free
01:15:58
3.3 11 $199.99 Free
05:50:21
4.4 80 Free
11:51:39
4.5 79 $199.99 Free
04:00:57
3.9 5 $199.99 Free
27:49:26
4.5 132 $199.99 Free
07:33:47
4.1 5 $19.99 Free
06:20:15
Updated Thu, 04-Oct-2018
3.8 5 $99.99 Free
02:21:45
4.2 4 $199.99 Free
14:28:07
3.9 5 $199.99 Free
02:41:06
4.2 4 $104.99 Free
02:05:43
Updated Sun, 29-Oct-2017
3.7 6 Free
02:34:40
Updated Tue, 05-Dec-2017
4 4 Free
35:24:16
4.5 120 $189.99 Free
About the instructor
  • 15 Students
  • 1 Courses
+ View more
The Best PHP Screencasts
Student feedback
4.6
Average rating
  • 0%
  • 4%
  • 8%
  • 52%
  • 136%
Comments
Free $99.99
Includes:
  • 12:15:26 On demand videos
  • 68 Lessons
  • Full lifetime access
  • Access on mobile and tv