Deric Cain

Tech ramblings of a true #geek.

Listings for: Web Development

Arrays are everywhere! - Part 1

Posted on March 18th, 2016

One of the most used data types in development is arrays. They are used so much, in fact, that PHP has a ton of different built-in array functions. I am going to do a series of the different array functions that PHP offers. Let’s look at a couple and how they can be useful.


If you have an array that…

Using the Repository Pattern in Laravel 5

Posted on March 10th, 2016

The Repository Pattern is a very useful pattern with a couple of great uses. The first use is the abstraction that it provides. Meaning, it adds another layer between your application logic and your database. When tackling separation of concerns, this is very important. Another benefit is how easy it makes it to swap out your backend technology. For instance,…

Easy month array with PHP

Posted on March 4th, 2016

I don’t know about you, but I use a month dropdown in a lot of projects. I got tired of typing them out, one by one, so I decided to look for an array. I just knew that someone had a gist out there with an associative array where the key was the number of the month and the value…

Easy site management with EasyEngine

Posted on January 19th, 2016

If you have ever had to set up and manage websites on a VPS, you should really check out EasyEngine. It will make your life approximately 1,000% easier. Let’s look at a scenario. I have a new Linode or Digital Ocean instance setup, installation is as easy as entering this command: wget -qO ee && sudo bash ee.


Multi-environment PHP Deployment with Rocketeer

Posted on November 24th, 2015

I started a web project using Codeigniter and I was looking for a good tool to use for PHP deployment. I was used to working with Wordpress and had the luxury of using wordmove which was a Wordpress deployment tool for Vagrant. Wordmove spoiled me with how easy it was to move a whole Wordpress site, database and all,…