Category: PHP

Advanced PHP is Actually Simple – Learn How Today

A woman rock climbing

Advanced PHP methods, practices, processes, and everything else can be a bit daunting. If you find it hard to understand some of the documentation or tutorials out there, don’t worry, I can help! I struggled to learn some of the core concepts, but eventually figured it out, I hope I can help you learn with

Silex

Books on shelves

This year I’ve continued to try different PHP frameworks. The ones I’ve tried are well written and have a fantastic community. I can see how some people may need to rely on a framework that does everything, but I like having control. And I prefer to add things instead of removing them. Silex has been

Development Environment

Blades of grass with the sun setting behind them

Setting up a development environment can be a pain. Sometimes it can be harder than writing the app. Some resources can help you develop faster, but you need to learn how to configure it for what you know, and it’s worth it in the long run. Gulp is one of those tools that speed up

PHP Adapter Design Pattern – Learn How It Can Help You

When I think of an adapter, I think of the three prong to two prong electrical outlet thing. It allows me to plug in an electrical device that has three prongs (one with a ground) into a two prong outlet that doesn’t have a ground. The interface of the outlet is two holes and the

Relationship Models for PHP and MySQL

Want to be in a relationship with a model? If that has always been a dream of yours, then I might be able to help. I firmly believe if you read this blog post, you’ll be able to attract any person you desire. Intelligence is an aphrodisiac. This post is really about how I developed

Interface or Abstract Class

I was recently working on a project, and I found myself adding the @property DocBlock to an interface. I knew it wasn’t good practice, but the class that is implementing that interface will provide those properties. I tried to convince myself it was okay. Interface Yes, it is a good idea to have your concrete

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 assistants on our phones that we can talk to and ask questions, so who cares about

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 about “My PHP Story,” then you may know I’ve been using PHP since before the

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 read and understand. My Programming History One of my neighbor’s, his dad was a programmer, and they had

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 more. Hopefully, you will agree that this is one of the easier design patterns to understand and implement. When I