Automatically Run PHPUnit Tests Before Git Push

When you're working on a project with a strong test suite you'll want to make sure that everything you push to the repository doesn't break any of the tests that you have in your project. This means...

Alias To Enable Disable xdebug

In this tutorial we're going to create a command line alias to quickly enable or disable xdebug. When you install xdebug you will need to register the extension in your php.ini file. This will need t...

My Development Setup

Like any profession a developers tools are important, they help us be more productive. When speaking to any developer you always have the tools and setup debate, what computer you use, what IDE do you...

Vagrant Up Bash Alias

Here is a quick tip to improve your workflow as a developer working with Vagrant. During my day-to-day job I use Vagrant with Homestead all the time, it allows me to quickly create a virtual environme...

Organising Your Hosts File

If you're freelancer or work for a large company you could find yourself with a large and sometimes out of control /etc/hosts file. I can have about 50 sites on there at a time, some are active and ot...

Hotlink Protection On Nginx

I recently created a WordPress plugin called Redirection Manager which will keep track of all 404s on your website and log the URL and the referrer of the link. In doing so I noticed there were quite...

Fixing Analytics Leverage Browser Caching

If you've read my previous articles you would of seen a post from last month about trying to reach the 100/100 on Google's pagespeed tool. This doesn't necessarily improve your site but it shows it's...

Attempt At Scoring 100 On Google PageSpeed

With PageSpeed being so important to Google and other search engines they have created a nice tool to judge the speed and optimization of your website by using Google PageSpeed tool. Google PageSpeed...

Development Workflow With Vagrant

In this tutorial we're going to look into using Vagrant and why we should include this in our development workflow. What Is Vagrant Vagrant allows you to build and configure complete development work...

How To Install Bower on Ubuntu

In this tutorial we're going to be installing Bower onto Ubuntu. Bower is a package manager for front-end libraries, similar to that of composer. It runs on Node.js and uses Git to install the requir...

List All Containers On Docker

Docker is a piece of software that allows you to run a complete filesystem in it's own environment like a virtual machine buy by using containers to wrap up the environment. It will contain all this...

Redirect HTTP to HTTPS

Since Google announced that they were going to start using HTTPS as part of their ranking you would of seen a vast amount of websites switching to use HTTPS instead of using HTTP. If you are switching...

Viewing Localhost Site On A Mobile Device

In modern web development it's very important that your website is functional on mobile devices. There are a few options that you can use when testing how your website works on mobile devices. Manual...

Get Last Record In Each MySQL Group

In this tutorial we will look at how you can use MySQL at getting the last record in a Group By of records. For example if you have this result set of posts. id category_id post_title ------------...

Stop Search Engines From Indexing A Page

There can be times where you have a page in Search Engines that you don't want indexed or are creating a new page and don't want this one page to be indexed. In this tutorial we are going to look at a...