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 · German 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 Video · 1 minute
01 Open free of charge

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

1 min

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

Introduction to the course

6 Videos · 21 minutes
02 Open

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

2 min

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

4 min

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?

2 min

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

2 min

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

2 min

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

9 min

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

The fundamentals of object-oriented programming

8 Videos · 59 minutes
08 Open

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

2 min

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?

19 min

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?

9 min

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

4 min

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

6 min

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

7 min

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

7 min

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

5 min

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

Introduction to Object-Oriented Programming with PHP

8 Videos · 37 minutes
16 Open

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

4 min

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

3 min

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

5 min

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

5 min

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

5 min

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

7 min

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

3 min

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

23 Open

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

5 min

You can find a possible solution to the task here.

Work with methods

7 Videos · 28 minutes
24 Open

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

4 min

Now you will learn the basic syntax for declaring functions.

25 Open

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

4 min

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

4 min

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

3 min

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

4 min

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

3 min

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

30 Open

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

6 min

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

Working with objects

12 Videos · 88 minutes
31 Open

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

10 min

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

6 min

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

10 min

Get to know the syntax for inheritance in php here.

34 Open

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

4 min

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

12 min

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

7 min

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

10 min

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

8 min

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

6 min

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

4 min

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

5 min

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

42 Open

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

6 min

Here is the solution to the exercise.

Object orientation: advanced concepts

11 Videos · 60 minutes
43 Open

Object-oriented web programming with php - 6.01 Serializing data

8 min

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

7 min

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

5 min

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

4 min

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

7 min

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

4 min

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

4 min

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

2 min

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

12 min

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

4 min

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

3 min

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

Structuring projects

4 Videos · 25 minutes
54 Open

Object-oriented web programming with php - 7.01 Using autoloaders

8 min

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

8 min

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

5 min

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

4 min

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

Design Patterns

4 Videos · 43 minutes
58 Open

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

6 min

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

13 min

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

14 min

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

10 min

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

Image gallery according to ModelViewController

23 Videos · 195 minutes
62 Open

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

19 min

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

3 min

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

7 min

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

11 min

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

15 min

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

6 min

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

6 min

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

11 min

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

13 min

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

7 min

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

6 min

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

5 min

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

8 min

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

13 min

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

7 min

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

3 min

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

4 min

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

15 min

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

7 min

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

4 min

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

17 min

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

83 Open

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

3 min

The practical example is extended with a user login exercise.

84 Open

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

5 min

You can find a solution for task #4 here.

RESTful API

4 Videos · 35 minutes
85 Open

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

9 min

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

8 min

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

11 min

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

7 min

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

Comments (5)

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