SOLID is an acronym for a couple of principles that any piece of software written based on object-oriented design needs to follow and in this tutorial, we are going to see what SOLID is and how we can implement it.
Cron Job is a scheduled task which is run at a given interval to do a specific task such as sending notifications to users. In this tutorial, you'll learn how to define different schedules in Laravel and how to write just one Cron Job on AWS EC2 to execute all Laravel's scheduled tasks.
The famous Gang of Four book states that the Decorator design pattern attaches additional responsibilities to an object dynamically and provides a flexible alternative to sub-classing for extending the functionality of parent classes. This pattern makes us able to develop flexible designs and in this tutorial, the implementation of this pattern in PHP programming language will be covered.
The Observer design pattern defines a one-to-many dependency between objects so that when an object state is changed, all of its dependents are notified and updated automatically and in this tutorial, you will see how to implement this pattern in PHP programming language the right way.
The Strategy design pattern (aka Policy pattern) allows you to pick the algorithm you want at runtime and it decouples the algorithm from where it's used. In other words, the Strategy pattern is used when we need to choose between similar classes that are different only in their implementation and in this tutorial, we will see how to implement this pattern in PHP programming language.
Facade deals with the fact that how your code should be structured; that's why it falls under the category of structural design patterns. Imagine in a given scenario, we have to use lots of classes and methods to complete a task; without using a pattern like Facade, we need to make different objects from those classes and call their methods one after the other. Now think of a solution that there is just a simple interface (e.g a static method) that handles all subsequent tasks and the only thing you need to do is calling that method; here is the situation that Facade design pattern comes to play and in this tutorial, you will learn how to implement it in PHP programming language.
In software development, the Factory design pattern refers to an object that is responsible for creating and delivering other objects based on a couple of parameters and the developer is not concerned with how the object is created and in this tutorial, you will see how the Factory design pattern is implemented in PHP programming language.
In a nutshell, the Adapter design pattern is like a translation layer between different components and it adjusts the interface of one class to match that of another. To make an example from the real-world, imagine that you want to connect a MacBook to a projector that has a VGA plug but the Mac does not. In situations like this, you need an adapter that transforms the connection from one format to the other. In this hands-on tutorial, you will see how to use the Adapter pattern in PHP the right way.
LogViewer is a package for Laravel framework which allows developers to manage and keep track of all log files in a user-friendly manner and in this tutorial we will see how to install and configure it.
Although closures are an integral part of Functional Programming, they can be useful in some other paradigms such as OOP and in this tutorial I am going to show what an anonymous function or closure is and how we can write one in PHP programming language.
In this tutorial, you will learn how to write your first unit test in PHP programming language via the PHPUnit framework. In the Software Development Life Cycle or SDLC, unit testing is a methodology by which each and every unit of source code will be tested for accuracy. In response to "What's a unit of code?", we are typically talking about the smallest part of a source code which is a function or method that can be used separately.