Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learning Path: Web Development with PHP 7 and Laravel 5
Rating: 3.7 out of 5(29 ratings)
192 students

Learning Path: Web Development with PHP 7 and Laravel 5

Apply your knowledge to build amazing web applications with PHP 7 and Laravel
Last updated 5/2017
English

What you'll learn

  • Explore new and advanced PHP techniques like anonymous and recursive function.
  • Understand the Object-oriented SOLID principles with PHP 7.
  • Learn and get accustomed with the advanced Object-oriented programming techniques such as Inheritance, Traits, Namespaces, and Autoloading.
  • Understand the PHP design patterns such as Singleton, Factory, Repository, and the MVC design pattern.
  • Work with Laravel directory structure and various artisan commands.
  • Learn about Laravel routes and the Laravel MVC structure.
  • Understand the basics of validations in controllers.
  • Build a web application using CRUD operations.

Course content

2 sections69 lectures7h 30m total length
  • The Course Overview2:38
    This video provides an overview of the entire course.
  • Installing Web Server Apache, MySQL, and PHP76:23
    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.
  • Why PHP 7?4:00
    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.
  • Scalar Type Declaration4:33
    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.
  • Return Type Declaration2:49

    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.

  • The Null Coalesce Operator2:39

    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 Spaceship Operator3:12
    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 Start Options2:36
    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.
  • Anonymous Classes2:27
    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.
  • Filtered Unserialization2:37
    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.
  • Grouping Use Statements2:38

    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.

  • Anonymous Function4:03
    Regular function is not suitable in some cases. PHP has anonymous function as a solution to improve the readability of the code.
  • Recursive Function3:55
    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.
  • Internationalization (i18n)7:01
    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 Expression7:44
    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.
  • Heredoc3:35
    Working with a very long string using concatenation in PHP could be cumbersome. PHP has heredoc syntax to solve this problem.
  • Date and Time6:54

    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.

  • Dependency Management7:21
    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.
  • PSR Standard7:59
    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.
  • Why Database?5:30
    Database is a must-have to build enterprise PHP applications. It can help to store, manage and process the data.
  • PDO6:01

    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.

  • Doctrine8:46
    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.
  • SQL Versus NoSQL5:36
    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.
  • Redis6:25
    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.
  • Why OOP?4:36
    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.
  • Object Versus Class3:01
    We continuously bump into classes when we take object-oriented programming approach. What is the relationship between object and class?
  • Class Construct6:26

    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 Variables4:02
    Variables in class has important role to define class state. There are three type of variable visibility in OOP, public, private, and protected.
  • Class Methods3:23

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

  • Class Constant4:06
    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.
  • Why SOLID?3:09
    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.
  • Single Responsibility Principle6:45
    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 Principle4:12
    Open Closed principle is the second principle of SOLID. We will find out more about it and how to apply it.
  • Liskov Substitution Principle4:42
    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 Principle3:53

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

  • Dependency Inversion Principle7:02

    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.

  • Inheritance6:40
    Inheritance is one of important fundamental concept in object-oriented programming. It can help reduce code duplication and brings good software architecture.
  • Abstract Class4:04

    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.

  • Interface5:42
    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.
  • Static Variables and Methods5:25
    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.
  • Magic Methods4:48
    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.
  • Traits5:38
    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.
  • Namespaces5:07
    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.
  • Autoloading4:19
    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.
  • Singleton Design Pattern5:24
    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 Pattern4:15

    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 Design Pattern4:31
    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 Design Pattern5:52
    Model View Controller is a design pattern that separates presentation logic and application logic. It consists of three components: Model, View, and controller.

Requirements

  • Basic knowledge of PHP
  • Basic knowledge of Laravel

Description

Are you a PHP developer who wants to learn the best PHP framework, Laravel? Do you want to migrate to PHP 7 for developing robust feature-rich web applications? If yes, this Learning Path is for you.

Laravel is a web application framework with expressive and elegant syntax. Laravel attempts to take the pain out of development by easing tasks that are most commonly used in web projects. PHP 7 is based on the PHPNG, so the performance gains realized from PHP 7 are huge.

Although Laravel 5 works well with the previous versions of PHP, the combination of PHP 7 and Laravel 5 can be used to create faster websites.

Packt’s Video Learning Paths are a series of individual video products put together in a logical and stepwise manner such that video builds on the skills learned in the video before it.

This Learning Path starts with an introduction to PHP 7 and then moves on to exploring its new and advanced features. You will also get acquainted with the basic and advanced object-oriented programming concepts and techniques. Next, you will learn how to install Laravel on Windows, Mac, and Linux systems. You will then be introduced to the directory structure of a Laravel application, as well as the third-party dependencies, packages, and installation with Composer. Moving ahead, you will learn about the Laravel MVC structure: routes, controllers, models, views, and templates. Finally, you will build a simple web application using the CRUD operations and basic validations.

By the end of this Learning Path, you will be able to build your own applications using PHP 7 and Laravel.

About the Authors:

For this course, we have combined the best works of these esteemed authors:

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

Hiren Dave is a software engineer, blogger, and consultant with over 9 years of professional experience. He writes code in number of languages. He has a passion for developing web apps, mobile apps, writing books, and blog articles about programming. He has a solid experience of startups, as he manages products for few startups. He is also passionate about researching and learning new technologies and trends. He has also authored a book Instant Sencha Touch, published by Packt.

Who this course is for:

  • This Learning Path is for PHP developers who wish to learn the Laravel framework to develop robust and feature-rich web applications.
  • Also, people who are working on older PHP versions and want to migrate to PHP 7 will find this Learning Path useful.