Archive for the ‘Design Patterns’ Category

Rapid Development of Zend Expressive Modules

Posted on: No Comments
I have learned a few tricks when writing Zend Expressive modules that I want to share with you. Please follow the previous post first to set up a proper working environment. I explained how to install and configure Zend Expressive with Doctrine, Gulp,...

ReactJS in PHP: Writing Compilers Is Easy and Fun!

Posted on: No Comments
I used to use an extension called XHP. It enables HTML-in-PHP syntax for generating front-end markup. I reached for it recently, and was surprised to find that it was no longer officially supported for modern PHP versions. So, I decided to implement a ...

Are Bitwise Operators Still Relevant in Modern PHP?

Posted on: No Comments
Many of you probably scratched your heads reading this title. "Bitwhat?" In this article, we'll look at what bitwise operators are, and whether or not their use is still relevant in this modern age of computing. Example Use Case I'd been trying to rea...

JavaScript Design Patterns: The Observer Pattern

Posted on: No Comments
In JavaScript, there is a problem that comes up often. You need a way to update parts of a page in response to certain events, with the data these provide. Say, for example, user input that you then project into one or many components. This leads into ...

What Are the Workflows of Prominent PHP Community Members?

Posted on: No Comments
Workflow refers to both the process and the tools that are used in this process. Almost every developer comes up with a process of creating and finalizing the project deliverables. This process is implemented through a set of tools that the developer c...

Re-Introducing PHPUnit – Getting Started with TDD in PHP

Posted on: No Comments
There are a lot of PHPUnit posts on our site already (just check the tag), but it's been a while since we've actually introduced people to it, and the tool has evolved significantly since then. This article aims to re-introduce the tool in a modern way...

Designing The Perfect Slider

Posted on: No Comments
    When we think about a slider, we usually imagine an image gallery slider, or the infamous carousel, or perhaps off-canvas navigation, with the overlay sl...

Re-Introducing Eloquent’s Polymorphic Relationships

Posted on: No Comments
You've probably used different types of relationships between models or database tables, like those commonly seen in Laravel: one-to-one, one-to-many, many-to-many, and has-many-through. But there's another type of relationship that's not so common: po...