Inflearn brand logo image
Inflearn brand logo image
Inflearn brand logo image
BEST
Programming

/

Programming Language

PHP 7+ Programming: Object-Oriented

This discusses the foundation for learning modern PHP, from PHP Object-Oriented Programming and built-in classes to PSR, Composer, and MVC (Model, View, Controller).

(4.5) 19 reviews

361 learners

  • pronist
PHP
oop

Reviews from Early Learners

What you will learn!

  • PHP Object-Oriented Programming

  • PHP Built-in Classes and Interfaces

  • PHP Micro Framework Development

  • PHP package manager

  • MVC(Model, View, Controller)

No more legacy,
Let's overcome the past and move forward into the future!
Jeong Sang-woo's 『Awesome Laravel』
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』
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』
PHP 7+ Programming

Recommended for
these people

Who is this course right for?

  • PHP 7+ Programming: Reboot Attendee

  • Those who want to learn about PHP object-oriented programming

  • Someone who wants to try modern PHP programming

Need to know before starting?

  • PHP 7+ Programming: Reboot

Hello
This is

1,738

Learners

73

Reviews

187

Answers

4.2

Rating

4

Courses

Curriculum

All

41 lectures ∙ (10hr 10min)

Published: 
Last updated: 

Reviews

All

19 reviews

4.5

19 reviews

  • Henu님의 프로필 이미지
    Henu

    Reviews 9

    Average Rating 5.0

    5

    100% enrolled

    가히 PHP 강의중 최고라 말할 수 있을 것 같습니다. 저는 현업에서 PHP 5.* 버전의 레거시 프로젝트를 맡아 업무를 진행하곤 합니다. 하지만 주 개발 언어가 PHP가 아니기에 얕은 지식으로나마 에러가 나지 않을 수준으로만 코딩을 하곤 했었는데, 어느 순간부터 레거시 프로젝트들에 대한 문제점들이 보이기 시작했습니다. 예를 들어, 스파게티 코딩은 당연지사 동일한 처리를 담당하는 함수의 중복, 잘못된 Truthy/Falsy 판별, 더군다나 PHP 환경 설정을 조작하여 얕은 에러(Warning) 같은 경우는 넘기도록 설정이 되어있고 등등... 사태의 심각성을 느끼는 순간 PHP는 원래 이렇게 코딩하는 것인가 의문점이 들었고, 어떻게 하면 PHP로도 유지보수가 편리한 코딩을 할 수 있을까라는 생각이 들던 찰나 인프런에 이렇게 귀한 PHP 강의를 찾게 되었네요. 이 강의 덕분에 PHP 7.*(모던한) 문법과 PHP 프레임워크들의 디렉토리 구조에 대해 제대로 배울 수 있는 기회를 가지게 되었네요. 감사드립니다. 추후 라라벨 프레임워크에 대한 강의가 나온다면 바로 수강 신청하겠습니다! 아, 한가지 OOP 파트까지 수강하면서 아쉬웠던 점은 로컬환경에서만 실습을 하다보니 실제 운영환경(Linux/Unix 등)에는 어떻게 배포가 이루어지는지 궁금해졌습니다. 만약, 강사님의 시간적 여유가 되신다면 다음 강의에서는 운영환경 배포쪽도 다뤄주셨으면 좋겠습니다.

    • 정상우
      Instructor

      정성어린 수강평 너무너무 감사합니다. 실제로 시장에서 아직까지도 현역으로 동작하는 프로젝트임에도 불구하고 PHP 프로젝트의 경우에는 말씀하신대로 레거시가 엄청 많습니다. PHP 는 인터넷의 발전에 있어서는 정말 중요한 역할을 해왔지만, 개발자의 입장에서 PHP 가 시장에서 쓰이는 방식은 그렇게 반갑지만은 않았지요. 저도 현업에서 이미 작성된 프로젝트에서 처음 PHP 를 마주했을 때, 정말 이 언어는 이게 한계인가를 고민하게 되어 타 언어로 이사를 가야하나 생각도 했었습니다. 다만, PHP 는 논프레임워크 환경에서 자유도가 정말 높은 만큼 개발자에 따라 그 결과물은 너무나도 다르다는 것을 인지하고 많은 이들이 PHP 를 보다 나은 방식으로 사용할 수 있도록 강의를 만들어보면 어떨까 싶었습니다. Henu 님처럼 현업에 있으면서 PHP 를 사용할 때, 보다 나은 방식으로 작성할 수 있는 방법을 고민하는 개발자가 많아졌으면 좋겠습니다. 여담으로 배포의 경우 저도 아직 미숙한 부분이 많아 제외했답니다 :))

  • 개foot님의 프로필 이미지
    개foot

    Reviews 47

    Average Rating 5.0

    5

    95% enrolled

    리부트를 시작해서 지금 강의도 들었는데, 함수형을 객체적으로 변환시 참고 할 만한 강의였습니다. 한번 들었던 것으로 이해는 다 되지는 않았지만, 여러번 볼 수 록 좋은 강의입니다. 이 후에 괜찮으시면 라라벨을 다루는 것도 좋고,주제가 살짝 벗어나지 않는 선에서 실 서버를 만들면서 서버에 대한 작은 노하우도 배우며 게시판을 만들어 보는 강의가 나오면 좋겠네요. 👍

    • Amber님의 프로필 이미지
      Amber

      Reviews 1

      Average Rating 5.0

      5

      12% enrolled

      아직 초반이지만 열심히 듣고 있습니다. php 객체지향 강의가 필요했는데 감사합니다. 강의 구성이 좋고 강사님께서 하나하나 알려주시지만 이해가 쉽도록 떠먹여주는 스타일의 강의는 아니라고 느껴집니다. 어떤 개념을 설명하실때 바로 코드로 보여주시기 보다는 먼저 용어나 개념의 정의 혹은 언제 사용하는지 등을 먼저 간단하게나마 설명해주시면 더 좋을 것 같습니다. 제 실력이 부족한 탓이겠지만, 처음 보는 개념을 배울 때 강의만으로는 이해가 어려워서 혼자서 문서 등을 찾아보고 먼저 공부해야 따라갈수 있었습니다. 그래야 강사님 말씀이 이해가 되더라구요. 이미 어느정도 개념을 알고 계신 분들은 이해하기 수월하실 것 같습니다. 좋은 강의 감사합니다! 다 들으면 강사님 라라벨 책도 보려고 합니다 ^^

      • frea님의 프로필 이미지
        frea

        Reviews 1

        Average Rating 5.0

        5

        100% enrolled

        PHP 5 이하의 레거시 시스템을 사용하고 있거나 PHP의 객체지향 개념을 잡고 싶다면 추천합니다. 강의 후반부의 MVC 패턴을 적용한 미니프레임워크를 만들어 보고 그걸 이용해서 게시판을 작성하는 부분에서 많이 이해할 수 있었습니다. 기초 강좌에서는 함수로 게시판을 작성했는데, 기초 강좌와 객체지향 강좌를 비교해 보면서 어떻게 개선되었는지를 잘 알 수 있었습니다. ^^ 다음 라라벨 강의도 나오면 수강할 겁니다.

        • 차무송님의 프로필 이미지
          차무송

          Reviews 3

          Average Rating 5.0

          5

          100% enrolled

          자신이 이후 라라벨이나 CI를 다룰 생각이 있다면 필수로 들으세요. 안그러면 framework가 어떤 식으로 돌아가는지도 모 르고 코드를 작성하게 될 것 같습니다. CI4를 공부하면 할수록 이 분이 얼마나 많은 지식을 가지고 계신지 체감하게 하네요... 강의시간에 비해 많은 시간을 투자해야 전체적으로 이해할 수 있다고 생각합니다. 저는 그랬습니다. 하지만 이런 시간 투자가 자신의 힘이 된다고 생각합니다. 이해안가는건 계속 반복해서 문서를 찾아보며 공부한다면 이 강의가 얼마나 고민하고 간단하게 깔끔하게 지식을 전달하기 위해 노력했는지 느끼실겁니다.

          • 정상우
            Instructor

            수강평 달아주셔서 정말 감사합니다. 이 강의를 만들면서 나름대로 고민을 많이했었는데 알아주셔서 정말 고맙습니다. 추후 새로운 마이크와 함께 라라벨 강의도 진행예정이랍니다 :)

        $42.90

        pronist's other courses

        Check out other courses by the instructor!

        Similar courses

        Explore other courses in the same field!