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
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.
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.
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.
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.
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.
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.
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.
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.
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.
Regular function is not suitable in some cases. PHP has anonymous function as a solution to improve the readability of the code.
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.
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).
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.
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.
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.
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.
Database is a must-have to build enterprise PHP applications. It can help to store, manage and process the data.
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.
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.
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.
We continuously bump into classes when we take object-oriented programming approach. What is the relationship between object and 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.
Variables in class has important role to define class state. There are three type of variable visibility in OOP, public, private, and protected.
Class has behavior. It is represented by methods. Method also has visibility. We are going to learn more about method visibility.
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.
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.
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.
Open Closed principle is the second principle of SOLID. We will find out more about it and how to apply it.
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.
Interface Segregation Principle is the fourth principle of SOLID. This video will give you insights about this 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.
Inheritance is one of important fundamental concept in object-oriented programming. It can help reduce code duplication and brings good software architecture.
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.
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.
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.
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.
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.
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.
Repository pattern is a kind of container where data access logic is stored. It hides the details of data access logic from business logic.
Model View Controller is a design pattern that separates presentation logic and application logic. It consists of three components: Model, View, and controller.
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.