No more legacy,
Let's overcome the past and move forward into the future!
Jeong Sang-woo's 『Awesome Laravel』
PHP 7+ Programming: Object Oriented
This course is a follow-up course to the course 『 PHP 7+ Programming 』 . However, even if you haven't taken the previous course, you can still follow along if you have basic knowledge.
Curriculum
We will cover the basics of learning modern PHP, including object-oriented programming, built-in classes, PSR, Composer, and MVC (Model, View, Controller) . Once you complete the course, you will be ready to start using the Laravel framework.
What is object orientation?
Learn PHP object-oriented syntax . Study the basics of classes and objects, generators, reference expressions , and other features added to modern PHP. We will also talk about features unique to the PHP language, such as inheritance and contextual keywords.
Built-in classes, you should know this much!
We will learn about built-in classes used in PHP, such as Classes, DateTime, Directory, Reflection, and SPL , which were not covered in the course 『PHP 7+ Programming』 . Additionally, we will learn about interfaces such as Iterator and ArrayAccess . Of course, if you think this content is too long, you can come back to it later.
What is the PHP Standard Recommendation?
Let's learn about PSR(PHP Standard Recommendation) . It is a recommendation that PHP-FIG talks about when programming PHP, and it includes things we need to know, such as coding style (PSR-1, PSR-12), autoloader (PSR-4), etc. So let's discuss it.
How long are you going to make and use it yourself?
Should we create all the code that we use on our web pages? No. There are many wonderful open source packages created by various people in the world. We should actively use them.
Package manager , that's Composer . It allows you to use packages created by various users and use the Packagist registry. In this lesson, we will use Whoops , one of the PHP packages, to feel the benefits of using packages.
Create your own framework
Frameworks include several libraries and provide project templates or frameworks for developers to use conveniently. We will configure them so that they can be used with a focus on MVC (Model, View, Controller) . Of course, we will not use any packages created by others here. We will download and use the packages created here directly using Composer in the bulletin board project that will come out right after.
From functional to object-oriented
We will actively use MVC (Model, View, Controller) , object-oriented , to transform the bulletin board project . We will also download the package created in ' Making My Own Framework' and apply it directly. However, we will write the code from the beginning, starting from index.php , and we will not use the existing code so that you can follow along even if you have not taken the previous lecture.
Things you need before attending the lecture
The development server uses the built-in embedded server , but you can use tools like WAMP or refer to the PHP manual depending on your needs.
- PHP 7.4.21 TS(Thread Safe) (64bit)
- XDebug 3.0.4 TS (64bit)
- The code editor used is VSCode (Visual Studio Code) .
Example code
The example code for this tutorial can be found in the GitHub repository. It uses the UIkit CSS Framework on the frontend and CKEditor 5 as the text editor.
Q&A
As of July 24, 2023, I will no longer be accepting questions about the course for personal reasons. However, you can still review the questions and answers that have been written over the years. I encourage you to search the community for questions.
Official Documents & Books
Goodbye legacy,
The Modern PHP Basics Bible for Beginners!
『PHP 7+ Programming』
It's time to get to know PHP 8, which has appeared after 5 years
[Free] 『PHP 8, Learn about new features』