php

Perceptual Hashing
Disclaimer: This is not a post about how you can get high and see things in a new light. Or is it? You may assume that computers know everything and they don’t need people to do anything. We have …
PHP Autoloader
The autoloader is similar to a troll riding a unicorn on a purple rainbow. You know it happens on a daily basis, but you’ve never seen it happen, even though you wish you had. If you read my last post …
My PHP Story
In an attempt to help people understand you won’t learn everything overnight, I would like to share with you, my story. This story starts in the early 1990s. I hope this is a post that everyone can …
Dependency Injection
How does dependency injection work? Is it magic? Does it hurt? The first two questions might be reasonable, and the third one might be something I would ask. Either way, I’ll cover these issues and …
PHP Unit Testing
Unit testing can reduce the number of headaches you may have with a large project. You should test each “unit” or piece of code. While it may be difficult for 100% code coverage (testing everything), …
PHP Type Hinting
PHP type hinting is something I’m a huge fan of and think everyone should use. It removes a lot of the guesswork from your PHP; you know that your method will only accept certain types. Being able to …
Creating a PHP Package
Make sure you have composerinstalled if you want to use PHP packages. If you’re new to PHP, then you may not know what a package is or why they’re nice. If you played with Legos as a kid, think about …
Factory Design Pattern
In this post, I’m going to talk about a design pattern; a design pattern is something you can use to solve common problems. I’m going to cover a simple example of the “factory design pattern” and an …
Intro to Object Oriented PHP
To learn how to write Object Oriented PHP, we will start with some basics and build upon those. I will use fictitious and realistic examples. We will also use a simple autoloader, so we don’t have to …
Top 5 PHP Frameworks
In this post, I’ll review what I believe to be the top five PHP frameworks. These frameworks are in no particular order since they all have benefits and can be handy in different situations. Also, …