PHP Tutorial - object-oriented programming: basics & practice Language: German

PHP Tutorial - object-oriented programming: basics & practice

Web design, CMS & development 88 Videos · 9.9 h Video training · English Jan Brinkmann by Jan Brinkmann

Would you like to design a modern website? Here it goes: Learn about object-oriented development with php from the basics to practical implementation. Basics, advanced concepts, design patterns and practical projects await you in this 10-hour tutorial by Jan Brinkmann.

  • 88 lessons in 10 hours of video training on object-oriented web programming with php
  • From the basics to practice and as a bonus a complete HTML/CSS template
  • From Jan Brinkmann, a passionate developer with over 15 years of web and app experience

Learning languages has never been so easy! Let the php tutorial show you how to create your website based on object-oriented programming.

content

88 Videos, 593 minutes

Intro to the video training

1 Videos · 1 minutes
01 Open free of charge

This is what you can expect in the video training "PHP Tutorial - Object-Oriented Programming: Basics & Practice"

You can expect a php tutorial on object-oriented programming - basics and practice.

01

This is what you can expect in the video training "PHP Tutorial - Object-Oriented Programming: Basics & Practice"

1 min Open

Introduction to the course

6 Videos · 21 minutes
02 Open

Object-oriented web programming with php - 1.01 Welcome to the course

With all my heart: Welcome to the course! Here is an overview of what you can expect.

03 Open

Object-oriented web programming with php - Install 1.02 development environment

Let's start by setting up your development environment. You can find the necessary software here.

04 Open

Object-oriented web programming with php - 1.03 Which editor should I use?

Which editor is the right choice for the examples? You can find the answer here.

05 Open

Object-oriented web programming with php - 1.04 Open and execute examples

I work with PhpStorm in the course. In this lesson, I will show you how the examples can also be opened with other editors.

06 Open

Object-oriented web programming with php - 1.05 Preview: What you end up developing

Are you already fully motivated? A little more after this video. A preview of the practical project.

07 Open

Object-oriented web programming with php - 1.06 Changes in PHP 7

Some things have changed in php 7. Here is an overview of some of the most obvious changes.

02

Object-oriented web programming with php - 1.01 Welcome to the course

2 min Open
03

Object-oriented web programming with php - Install 1.02 development environment

4 min Open
04

Object-oriented web programming with php - 1.03 Which editor should I use?

2 min Open
05

Object-oriented web programming with php - 1.04 Open and execute examples

2 min Open
06

Object-oriented web programming with php - 1.05 Preview: What you end up developing

2 min Open
07

Object-oriented web programming with php - 1.06 Changes in PHP 7

9 min Open

The fundamentals of object-oriented programming

8 Videos · 59 minutes
08 Open

Object-oriented web programming with php - 2.01 The object quiz

To make the basics chapter even more exciting, you can fill in a cloze text here. Download the template, print it out and edit it as you work through the chapter.

09 Open

Object-oriented web programming with php - 2.02 Object orientation, what is it?

This is where you lay the important foundation, because objects are not just a collection of data and functions. An important introduction to the topic.

10 Open

Object-oriented web programming with php - 2.03 What are classes?

When talking about object-oriented programming, sooner or later the term "class" comes up. But what is it all about?

11 Open

Object-oriented web programming with php - 2.04 Data encapsulation

Data encapsulation is an important basic principle. In this lesson, you will learn about the idea behind it.

12 Open

Object-oriented web programming with php - 2.05 Abstraction

Without abstraction, your software would very quickly become rather confusing and the desired simplification would not be achieved. Watch this video and learn to think more abstractly.

13 Open

Object-oriented web programming with php - 2.06 Inheritance

Inheritance also supports the architecture of your software. Learn to understand it and use it consciously.

14 Open

Object-oriented web programming with php - 2.07 Polymorphism

Polymorphism is best understood in practice. Nevertheless, you should at least have heard of it at this point.

15 Open

Object-oriented web programming with php - 2.08 Solution for the cloze text

Have you filled in the cloze conscientiously? Very good! You can now check it here.

08

Object-oriented web programming with php - 2.01 The object quiz

2 min Open
09

Object-oriented web programming with php - 2.02 Object orientation, what is it?

19 min Open
10

Object-oriented web programming with php - 2.03 What are classes?

9 min Open
11

Object-oriented web programming with php - 2.04 Data encapsulation

4 min Open
12

Object-oriented web programming with php - 2.05 Abstraction

6 min Open
13

Object-oriented web programming with php - 2.06 Inheritance

7 min Open
14

Object-oriented web programming with php - 2.07 Polymorphism

7 min Open
15

Object-oriented web programming with php - 2.08 Solution for the cloze text

5 min Open

Introduction to Object-Oriented Programming with PHP

8 Videos · 37 minutes
16 Open

Object-oriented web programming with php - 3.01 Classes in PHP

From theory to practice. This is where you get started with the implementation of php.

17 Open

Object-oriented web programming with php - 3.02 From class to object: with new

A class is the blueprint for objects. In php, an instance is created with the keyword "new". You can learn how to do this here.

18 Open

Object-oriented web programming with php - 3.03 Features

The properties of a class describe the object in more detail. Get to know this concept better.

19 Open

Object-oriented web programming with php - 3.04 Constants

The constants are an additional option for storing static values. You will also learn about this principle here.

20 Open

Object-oriented web programming with php - 3.05 Naming conventions

There are some generally accepted conventions or "best practices" for naming variables & co. And that's what we're talking about here.

21 Open

Object-oriented web programming with php - 3.06 Values and references

Are you familiar with the "PassByValue" and "PassByReference" principles? They are extremely important when working with objects. Find out why here.

22 Open

Object-oriented web programming with php - 3.07 Exercise #1

The first introduction is over. Deepen your knowledge with the first exercise.

23 Open

Object-oriented web programming with php - 3.08 Solution #1

You can find a possible solution to the task here.

16

Object-oriented web programming with php - 3.01 Classes in PHP

4 min Open
17

Object-oriented web programming with php - 3.02 From class to object: with new

3 min Open
18

Object-oriented web programming with php - 3.03 Features

5 min Open
19

Object-oriented web programming with php - 3.04 Constants

5 min Open
20

Object-oriented web programming with php - 3.05 Naming conventions

5 min Open
21

Object-oriented web programming with php - 3.06 Values and references

7 min Open
22

Object-oriented web programming with php - 3.07 Exercise #1

3 min Open
23

Object-oriented web programming with php - 3.08 Solution #1

5 min Open

Work with methods

7 Videos · 28 minutes
24 Open

Object-oriented web programming with php - 4.01 Methods in PHP

Now you will learn the basic syntax for declaring functions.

25 Open

Object-oriented web programming with php - 4.02 Setting parameters for methods

Methods only become truly dynamic through parameters. You will also get to know these here.

26 Open

Object-oriented web programming with php - 4.03 Return values of methods

Methods can do more than just execute source code and generate output. Here you will learn how values are returned to the caller.

27 Open

Object-oriented web programming with php - 4.04 Variable method names

You can store the method name in a variable before the call and continue to use the variable. Get to know this here.

28 Open

Object-oriented web programming with php - 4.05 Validity scopes in objects

There are different areas of validity that you should know. Get to know them here.

29 Open

Object-oriented web programming with php - 4.06 Exercise #2

The next exercise is coming up. This time, the topic is "Methods".

30 Open

Object-oriented web programming with php - 4.07 Solution #2

The possible solution to the exercise on methods can be found in this lesson.

24

Object-oriented web programming with php - 4.01 Methods in PHP

4 min Open
25

Object-oriented web programming with php - 4.02 Setting parameters for methods

4 min Open
26

Object-oriented web programming with php - 4.03 Return values of methods

4 min Open
27

Object-oriented web programming with php - 4.04 Variable method names

3 min Open
28

Object-oriented web programming with php - 4.05 Validity scopes in objects

4 min Open
29

Object-oriented web programming with php - 4.06 Exercise #2

3 min Open
30

Object-oriented web programming with php - 4.07 Solution #2

6 min Open

Working with objects

12 Videos · 88 minutes
31 Open

Object-oriented web programming with php - 5.01 The references $this and self

When working with objects, the reference to the current object ("$this") and the reference to the current class ("self") play a special role. You will learn about both here.

32 Open

Object-oriented web programming with php - 5.02 Create and destroy objects: construct/descruct

You can execute your own logic when creating and destroying objects. The constructors and destructors are used for this. Get to know the principle here.

33 Open

Object-oriented web programming with php - 5.03 Using inheritance

Get to know the syntax for inheritance in php here.

34 Open

Object-oriented web programming with php - 5.04 The keyword parent

If you inherit from a class, you can use the keyword "parent" to refer to the main class. I'll show you how to do this here.

35 Open

Object-oriented web programming with php - 5.05 Visibility of properties: public, private, protected

Visibility is of central importance. Get to know the keywords "public", "private" and "protected".

36 Open

Object-oriented web programming with php - 5.06 Visibility of methods

Visibility does not only refer to properties. Here you also transfer the knowledge to methods.

37 Open

Object-oriented web programming with php - 5.07 Defining interfaces

Interfaces are an important stylistic device. In this lesson, you will look at them using an example.

38 Open

Object-oriented web programming with php - 5.08 Static methods

Static methods also play an important role in our practical example. Learn more about the concept here.

39 Open

Object-oriented web programming with php - 5.09 Abstract classes and methods

Abstract classes and methods are another stylistic device for software architects. You also need to get to know them.

40 Open

Object-oriented web programming with php - 5.10 Prevent overwriting with final

A method may no longer be overwritten? Then make this visible with the keyword "final".

41 Open

Object-oriented web programming with php - 5.11 Exercise #3

Deepen your work with objects a little more in this exercise.

42 Open

Object-oriented web programming with php - 5.12 Solution #3

Here is the solution to the exercise.

31

Object-oriented web programming with php - 5.01 The references $this and self

10 min Open
32

Object-oriented web programming with php - 5.02 Create and destroy objects: construct/descruct

6 min Open
33

Object-oriented web programming with php - 5.03 Using inheritance

10 min Open
34

Object-oriented web programming with php - 5.04 The keyword parent

4 min Open
35

Object-oriented web programming with php - 5.05 Visibility of properties: public, private, protected

12 min Open
36

Object-oriented web programming with php - 5.06 Visibility of methods

7 min Open
37

Object-oriented web programming with php - 5.07 Defining interfaces

10 min Open
38

Object-oriented web programming with php - 5.08 Static methods

8 min Open
39

Object-oriented web programming with php - 5.09 Abstract classes and methods

6 min Open
40

Object-oriented web programming with php - 5.10 Prevent overwriting with final

4 min Open
41

Object-oriented web programming with php - 5.11 Exercise #3

5 min Open
42

Object-oriented web programming with php - 5.12 Solution #3

6 min Open

Object orientation: advanced concepts

11 Videos · 60 minutes
43 Open

Object-oriented web programming with php - 6.01 Serializing data

When objects are stored in text form or transmitted over the network, this is called "serialization". Learn how it works.

44 Open

Object-oriented web programming with php - 6.02 Sleep and WakeUp during serialization

Serialization does not always work properly, e.g. because a connection is not automatically re-established after reading in again. Learn how you can also intervene here.

45 Open

Object-oriented web programming with PHP - 6.03 The magic method __invoke

The magic method "__invoke" allows you to call up your objects directly.

46 Open

Object-oriented web programming with PHP - 6.04 Describing objects with __toString

A widely used method is the readable description of objects using the magic method "__toString". I will introduce you to this in this lesson.

47 Open

Object-oriented web programming with php - 6.05 Overloading with get, set & Co

Especially with a dynamic data model, you can use magic methods such as "get", "set" etc. to save work. save work. You often find this in practice and you need to know the technology behind it.

48 Open

Object-oriented web programming with php - 6.06 Check type with instanceof

For example, certain classes are often checked in conditions. The keyword "instanceof", which you will now learn about here, helps you to do this in php.

49 Open

Object-oriented web programming with php - 6.07 Using anonymous classes

Newly introduced in php 7: anonymous classes. They can avoid unnecessary overhead in some situations. You can find a practical example in this video.

50 Open

Object-oriented web programming with PHP - 6.08 Duplicating objects

A copy of objects cannot be created via the variables. Only the reference is passed on. However, you can clone objects. Here you will learn what is necessary for this.

51 Open

Object-oriented web programming with php - 6.09 Using exceptions

Exceptions are important in the object-oriented world, as error situations can be passed on across several levels and processed in the appropriate place. Learn to use them.

52 Open

Object-oriented web programming with php - 6.10 Using type hints

Also new in php 7: type hints for scalar data types such as "string", "int" etc. Learn how to use them here.

53 Open

Object-oriented web programming with php - 6.11 Return type of methods

Also new in php 7: the declaration of the return value of a method. Here I present the syntax for this.

43

Object-oriented web programming with php - 6.01 Serializing data

8 min Open
44

Object-oriented web programming with php - 6.02 Sleep and WakeUp during serialization

7 min Open
45

Object-oriented web programming with PHP - 6.03 The magic method __invoke

5 min Open
46

Object-oriented web programming with PHP - 6.04 Describing objects with __toString

4 min Open
47

Object-oriented web programming with php - 6.05 Overloading with get, set & Co

7 min Open
48

Object-oriented web programming with php - 6.06 Check type with instanceof

4 min Open
49

Object-oriented web programming with php - 6.07 Using anonymous classes

4 min Open
50

Object-oriented web programming with PHP - 6.08 Duplicating objects

2 min Open
51

Object-oriented web programming with php - 6.09 Using exceptions

12 min Open
52

Object-oriented web programming with php - 6.10 Using type hints

4 min Open
53

Object-oriented web programming with php - 6.11 Return type of methods

3 min Open

Structuring projects

4 Videos · 25 minutes
54 Open

Object-oriented web programming with php - 7.01 Using autoloaders

So far, the examples have been very simple. In practice, the structure is more complex. This is where the autoloader plays a central role. Learn how to store it.

55 Open

Object-oriented web programming with php - 7.02 A better structure

In this lesson, you will lay the foundations for a clean project structure.

56 Open

Object-oriented web programming with php - 7.03 Even better with namespaces

The project structure is now being fine-tuned thanks to the namespaces. Get to know them here.

57 Open

Object-oriented web programming with php - 7.04 Importing classes into the namespace

Would you like to use classes from other namespaces? Learn how to import them here.

54

Object-oriented web programming with php - 7.01 Using autoloaders

8 min Open
55

Object-oriented web programming with php - 7.02 A better structure

8 min Open
56

Object-oriented web programming with php - 7.03 Even better with namespaces

5 min Open
57

Object-oriented web programming with php - 7.04 Importing classes into the namespace

4 min Open

Design Patterns

4 Videos · 43 minutes
58 Open

Object-oriented web programming with php - 8.01 Singleton: only one instance

Only one instance of a class is created using the "singleton pattern". You can learn about the implementation here.

59 Open

Object-oriented web programming with php - 8.02 Iteration: process all data

Do you want to read all data from your own collection or class? An iterator will help you.

60 Open

Object-oriented web programming with php - 8.03 Observer: Observe objects

An observer enables a very loose coupling between different parts of your application. Get to know this design pattern now.

61 Open

Object-oriented web programming with php - 8.04 Factory: Minimize dependencies

A factory creates instances of your classes. This minimizes dependencies and centralizes the calling of your constructors.

58

Object-oriented web programming with php - 8.01 Singleton: only one instance

6 min Open
59

Object-oriented web programming with php - 8.02 Iteration: process all data

13 min Open
60

Object-oriented web programming with php - 8.03 Observer: Observe objects

14 min Open
61

Object-oriented web programming with php - 8.04 Factory: Minimize dependencies

10 min Open

Image gallery according to ModelViewController

23 Videos · 195 minutes
62 Open

Object-oriented web programming with php - 9.01 Model-View-Controller overview

Get to know the Model-View-Controller pattern before we dive into the practice.

63 Open

Object-oriented web programming with php - 9.02 A demo in advance

What happens here? Fill up on motivation and take a look at the end result in advance.

64 Open

Object-oriented web programming with PHP - 9.03 The index.php as an entry point: Rewrite via htaccess

A feature of our application: the central entry point. Here you provide the necessary framework conditions via the ".htaccess".

65 Open

Object-oriented web programming with php - 9.04 Processing the URL: the bootstrap class

The URL processing and assignment of the correct class runs via bootstrapping. You create it here.

66 Open

Object-oriented web programming with php - 9.05 Routing: Assigning controllers and actions

The requested resource is assigned to the controller and an action.

67 Open

Object-oriented web programming with php - 9.06 The first controller and an action

After the resources can be requested, you must of course also offer some. And this is exactly what happens here: via your first controller including action.

68 Open

Object-oriented web programming with php - 9.07 Preparing the database structure

A database structure is the necessary prerequisite for further use. It is now being prepared.

69 Open

Object-oriented web programming with php - 9.08 Connecting the database using PDO

In php 7, the "mysql_*" functions no longer exist. Here you will get to know an object-oriented alternative: PDO.

70 Open

Object-oriented web programming with php - 9.09 The view level of the gallery: view objects and templates

The appearance is of course still determined by HTML/CSS. Here you will learn how the integration can be realized.

71 Open

Object-oriented web programming with php - 9.10 Design for the gallery

The design for the gallery view is taken from the template and then integrated.

72 Open

Object-oriented web programming with php - 9.11 Retrieving the base URL

You will find a centrally accessible base URL in most frameworks. It can be configured, for example, or specified separately for protected pages such as the log-in (possibly with https). Learn how this can be implemented.

73 Open

Object-oriented web programming with php - 9.12 Creating models using factory patterns

You have already become familiar with the "Factory Design Pattern". It is now also used here.

74 Open

Object-oriented web programming with php - 9.13 Creating models for users

A model is required before users can be loaded into the application. And this is exactly what is created now.

75 Open

Object-oriented web programming with php - 9.14 Starting sessions: User login

Sessions are also supported by the gallery. The first step here is to implement the log-in.

76 Open

Object-oriented web programming with php - 9.15 Working with the session: logging out and checking whether you are logged in

Are you logged in? Would you like to log out again? Both functions are checked in this lesson.

77 Open

Object-oriented web programming with php - 9.16 Log-in failed: Reading values from the session

The log-in has failed. Here you will learn how to read values from the session.

78 Open

Object-oriented web programming with php - 9.17 Upload images: preparing the form

Another feature, new controller: process forms. This is where you make the preparations.

79 Open

Object-oriented web programming with php - 9.18 Processing uploads

The upload must also be processed after the "POSTRequest". You will learn all the necessary steps here.

80 Open

Object-oriented web programming with php - 9.19 Saving new images in the database

A new image has been successfully transferred. A reference to this is recorded in the database.

81 Open

Object-oriented web programming with php - 9.20 Transporting messages via the session

Here you will learn how to manage the messages in the session even better.

82 Open

Object-oriented web programming with php - 9.21 Scaling images

The uploaded images are scaled to a common denominator (same height).

83 Open

Object-oriented web programming with php - 9.22 Exercise #4

The practical example is extended with a user login exercise.

84 Open

Object-oriented web programming with php - 9.23 Sample solution #4

You can find a solution for task #4 here.

62

Object-oriented web programming with php - 9.01 Model-View-Controller overview

19 min Open
63

Object-oriented web programming with php - 9.02 A demo in advance

3 min Open
64

Object-oriented web programming with PHP - 9.03 The index.php as an entry point: Rewrite via htaccess

7 min Open
65

Object-oriented web programming with php - 9.04 Processing the URL: the bootstrap class

11 min Open
66

Object-oriented web programming with php - 9.05 Routing: Assigning controllers and actions

15 min Open
67

Object-oriented web programming with php - 9.06 The first controller and an action

6 min Open
68

Object-oriented web programming with php - 9.07 Preparing the database structure

6 min Open
69

Object-oriented web programming with php - 9.08 Connecting the database using PDO

11 min Open
70

Object-oriented web programming with php - 9.09 The view level of the gallery: view objects and templates

13 min Open
71

Object-oriented web programming with php - 9.10 Design for the gallery

7 min Open
72

Object-oriented web programming with php - 9.11 Retrieving the base URL

6 min Open
73

Object-oriented web programming with php - 9.12 Creating models using factory patterns

5 min Open
74

Object-oriented web programming with php - 9.13 Creating models for users

8 min Open
75

Object-oriented web programming with php - 9.14 Starting sessions: User login

13 min Open
76

Object-oriented web programming with php - 9.15 Working with the session: logging out and checking whether you are logged in

7 min Open
77

Object-oriented web programming with php - 9.16 Log-in failed: Reading values from the session

3 min Open
78

Object-oriented web programming with php - 9.17 Upload images: preparing the form

4 min Open
79

Object-oriented web programming with php - 9.18 Processing uploads

15 min Open
80

Object-oriented web programming with php - 9.19 Saving new images in the database

7 min Open
81

Object-oriented web programming with php - 9.20 Transporting messages via the session

4 min Open
82

Object-oriented web programming with php - 9.21 Scaling images

17 min Open
83

Object-oriented web programming with php - 9.22 Exercise #4

3 min Open
84

Object-oriented web programming with php - 9.23 Sample solution #4

5 min Open

RESTful API

4 Videos · 35 minutes
85 Open

Object-oriented web programming with php - 10.01 The API controller with JSON template

The strengths of the MVC architecture are utilized and another controller with a different template is used for the same database logic.

86 Open

Object-oriented web programming with php - 10.02 Enabling better routing: the configuration

The previously very static routing is optimized once again - with its own configuration file.

87 Open

Object-oriented web programming with php - 10.03 Customizing bootstrapping

The adapted routing solution must now be taken into account in bootstrapping.

88 Open

Object-oriented web programming with php - 10.04 Upload images via API

In order to be able to use the API, the images are uploaded via an iOS app.

85

Object-oriented web programming with php - 10.01 The API controller with JSON template

9 min Open
86

Object-oriented web programming with php - 10.02 Enabling better routing: the configuration

8 min Open
87

Object-oriented web programming with php - 10.03 Customizing bootstrapping

11 min Open
88

Object-oriented web programming with php - 10.04 Upload images via API

7 min Open
Comments (5)

Comment now „PHP Tutorial - object-oriented programming: basics & practice“