Getting Started with PHP 7
4.2 (28 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
162 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Getting Started with PHP 7 to your Wishlist.

Add to Wishlist

Getting Started with PHP 7

Increase your productivity by learning the new features of PHP 7
4.2 (28 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
162 students enrolled
Created by Packt Publishing
Last updated 2/2017
Current price: $10 Original price: $125 Discount: 92% off
5 hours left at this price!
30-Day Money-Back Guarantee
  • 4 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Get to know a better understanding about object-oriented SOLID principles with PHP 7
  • Learn the advanced PHP techniques like anonymous and recursive function
  • Find out how to Improve PHP application by applying dependency management and PHP standard.
  • Apply SOLID design principles which can make code become cleaner, maintainable and extensible.
  • Learn and get accustomed with the Advanced OOP techniques like inheritance, traits, namespace and auto loading
  • Gain a better understanding PHP design patterns such as singleton, factory, repository and MVC design pattern.
View Curriculum
  • No grounding in PHP required.
  • The video will get you to speed in everything from basic programming practices to high end techniques.

When it comes to modern web development, performance is everything. The latest version of PHP has been improvised and updated to make it easier to build for performance, improved engine execution, better memory usage, and a new and extended set of tools. If you’re a web developer, what’s not to love? This course would guide you with the new features of PHP 7, advanced OOP and get equipped with SOLID Principles and Design Pattern.

PHP is an excellent language for object oriented programming. The new features of PHP 7 makes it more fast and scalable. This video covers the basic concepts of PHP programming in a step-by-step manner.The viewer will be able to improve their productivity by learning design patterns which will promote code reuse and reduce redundancy. The video would go in detail about advance OOP concepts, networking, design patterns, debugging, etc

This course will show you how to make full use of PHP 7 with a range of practical projects that will not only teach you the principles, but also show you how to put them into practice. It will push and extend your skills, helping you to become a more confident and fluent PHP developer.

About the Author

Budi Irawan is a software engineer, lecturer and open source contributor. He has experience in PHP more than 7 years in building small and enterprise web applications. Beside PHP, he also plays with Javascript and Ruby. He loves to teach, contribute and meet new people. In his spare time, he usually do sports and travelling.

Who is the target audience?
  • Beginner web developers who know HTML and maybe CSS and can develop simple static websites, but want to learn PHP in order to develop dynamic, database-backed web applications.
Compare to Other PHP Courses
Curriculum For This Course
48 Lectures
Installation and Setup
2 Lectures 09:01

This video provides an overview of the entire course.

Preview 02:38

In order to practice examples in video, there are things that we need to setup and install. This video will show you what things should be setup and installed.

Installing Web Server Apache, MySQL, and PHP7
Getting Started with PHP 7
9 Lectures 27:31

PHP 7 is the new kid on the block. It is a long awaited version and it brings some cool new features that can encourage us to move on from previous PHP versions. 

Preview 04:00

PHP 5 already supports type declaration for array, class and interface. PHP 7 comes with more support. It supports scalar type declaration for int, boolean, float and string.

Scalar Type Declaration

PHP always has dynamic return type in functions. PHP 7 introduces a new feature, return type declaration, that will allow us to define the return type in a function. 

Return Type Declaration

When checking a variable is set or null, it always needs more codes to write. PHP 7 has a new operator named The Null Coalesce Operator to make the null checking codes cleaner. 

The Null Coalesce Operator

Sorting is mostly used in enterprise PHP applications. A new operator in PHP 7 tries to improve how we play with sorting. It is the Spaceship Operator. 

The Spaceship Operator

Session option configuration in the previous PHP version is not flexible. We have to change the php.ini file. PHP 7 tries to solve this problem by introducing session start options. 

Session Start Options

A class name is one of the requirements for creating a class in the previous PHP version. PHP 7 has a new feature to create anonymous classes.

Anonymous Classes

The previous PHP version had a security problem with object unserialization. PHP 7 tries to solve this problem using filtered unserialization to remove unwanted objects. 

Filtered Unserialization

Previously in PHP, if you have a class that use a lot of another class you will get quite lot of use statements. In PHP 7, this can be simplified using grouping use statements. 

Grouping Use Statements
Advanced PHP Techniques
8 Lectures 48:32

Regular function is not suitable in some cases. PHP has anonymous function as a solution to improve the readability of the code. 

Preview 04:03

Recursive function is common in computer programming. When we develop PHP application, somehow we will find a problem that can be solved using recursive function. 

Recursive Function

Targeting the world-wide users means that we have to support all languages in our web application. We need to know how to use internationalization (i18n). 

Internationalization (i18n)

Regular Expression is powerful technique to search and manipulate text. PHP has some built-in functions that incorporate regular expression and it is important to learn the regular expression grammar and syntax.

Regular Expression

Working with a very long string using concatenation in PHP could be cumbersome. PHP has heredoc syntax to solve this problem. 


Dealing with date and time is something that we can't avoid when building PHP application. It is important to know the essential techniques to construct and manipulate date and time. 

Date and Time

Managing and maintaining dependencies can be troublesome but PHP already comes with an application-level package manager called Composer that makes the process smooth and elegant. 

Dependency Management

PHP has so many available standards. Each application and each framework defines their own standard. PSR is an initiative to create uniform standard for PHP world. 

PSR Standard
Working with Databases
5 Lectures 32:18

Database is a must-have to build enterprise PHP applications. It can help to store, manage and process the data. 

Preview 05:30

PHP has particular functions to connect and manage database in some RDBMS such as MySQL and PostgreSQL. It is not the best practice though. Using PDO is more recommended.


Doctrine is a library to use the next level technique to communicate with database. It can act as database access layer and also Object relational mapper. This video is an introduction to Doctrine. 


NoSQL is gaining popularity in the last few years to solve various business problems. It is very important to learn the differences between NoSQL and SQL so that we will have a sense to use them correctly.

SQL Versus NoSQL

Redis is one of NoSQL database. It can be used for many scenarios to help build enterprise application. This video is an introduction to Redis. 

Basic Object-Oriented Programming
6 Lectures 25:34

PHP is originally created to resemble procedural language C. But procedural language has some caveats especially when we want to build large application. Object-oriented approach tries to solve this limitation. 

Preview 04:36

We continuously bump into classes when we take object-oriented programming approach. What is the relationship between object and class?

Object Versus Class

Class is the central aspect in object-oriented programming. In this video, we are going to learn how to create class, how to create object from the class, how to define constructor and destructor. 

Class Construct

Variables in class has important role to define class state. There are three type of variable visibility in OOP, public, private, and protected. 

Class Variables

Class has behavior. It is represented by methods. Method also has visibility. We are going to learn more about method visibility. 

Class Methods

Sometimes we want to define value that can't be changed, we can use constant for this case. We will have a brief look on how to create and access a constant.

Class Constant
SOLID Principles
6 Lectures 29:43

What is the characteristic of good and bad code? Every good developer always strive to write good code. SOLID principles can be a guideline to make it happen. 

Preview 03:09

SRP is the entry point of SOLID principles. It is the easiest principle to understand and adhere to. We're going to find out what SRP is and how to implement SRP. 

Single Responsibility Principle

Open Closed principle is the second principle of SOLID. We will find out more about it and how to apply it. 

Open Closed Principle

The third principle of SOLID is Liskov Substitution Principle. This principle is probably hard to understand at first but we can go through the problem example and try to fix the problem to adhere LSP. It will improve our understanding about LSP. 

Liskov Substitution Principle

Interface Segregation Principle is the fourth principle of SOLID. This video will give you insights about this principle. 

Interface Segregation Principle

Dependency Inversion Principle is the last principle of SOLID. It describes the proper way to define dependency between classes. In this video, we are going to learn what it is and how to use it in our application. 

Dependency Inversion Principle
Advanced OOP
8 Lectures 41:43

Inheritance is one of important fundamental concept in object-oriented programming. It can help reduce code duplication and brings good software architecture. 

Preview 06:40

An abstract class is a class that is meant to be a parent or base class only. We cannot create an object from an abstract class. Abstract class can have abstract method. It is useful for inheritance. 

Abstract Class

An interface is a contract. It tells us exactly which methods should be present in each class that adheres to that contract. This video will show you how to use interface in PHP. 


Using static properties and methods can help you write less code. But static has unique behavior compared with dynamic properties and methods. You will learn about this more in this video. 

Static Variables and Methods

PHP has special methods called magic methods. These methods are executed automatically when some events are raised. Let's learn some of them in this video. 

Magic Methods

Trait is introduced in PHP 5.4. It is basically a collection of method that can be plugged into the class. Trait can help to reduce code duplication between classes. 


In PHP, class must be unique. If we have same class name then we would be in trouble. Luckily, namespaces release us from this situation. 


Autoloading can improve our way in including files and class. It is one of a great technique in building big PHP application. You will learn about autoloading in this video. 

Design Pattern
4 Lectures 20:02

The singleton pattern is used to restrict the instantiation of a class to a single object, which can be useful when only one object is required across the system. This video will show you how to implement singleton pattern in PHP.

Preview 05:24

Factory Method Design Pattern allows interfaces for creating objects and also allows subclasses to determine which class to instantiate. In this video, you will learn more how useful this pattern to solve some problems.

Factory Method Design Pattern

Repository pattern is a kind of container where data access logic is stored. It hides the details of data access logic from business logic. 

Repository Design Pattern

Model View Controller is a design pattern that separates presentation logic and application logic. It consists of three components: Model, View, and controller.  

Model View Controller Design Pattern
About the Instructor
Packt Publishing
3.9 Average rating
8,197 Reviews
58,853 Students
687 Courses
Tech Knowledge in Motion

Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.

With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.

From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.

Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.