01 Aug 2016
Laravel makes it really easy to return a JSON response from the API you're building; you simply return the value from your route or controller action and it will be JSON encoded automatically, ready to be consumed.
14 Jul 2016
New PHP packages are usually developed in parallel with larger projects. However, it's often inconvenient to publish an unfinished package in order to require it as a dependency in your project's composer.json.
04 Jul 2016
This is a quick and easy one, but I'm bound to forget it somewhere along the way...
17 Jun 2016
Laravel provides a quick and easy way to enable user authentication out of the box through it's AuthManager and guards.
14 Jun 2016
This is a quick way to remove inaccessible virtual machines from Virtual Box.
13 Jun 2016
Error tracking in applications is often overlooked. Sometimes it's difficult to know exactly how to collate and organise your errors until it's too late.
11 Feb 2016
If you're looking to integrate OAuth2 principles into your Laravel 4/5 application, the oauth2-server-laravel package is a really nice way to do so.
25 Sep 2014
News of the Shellshock bug is spreading fast. If you haven't heard about it already, you should definitely read up on it
02 Apr 2014
Utilising Elasticsearch is a great way to provide full-text search capabilities to any application through a familiar RESTful interface. However, by default it doesn't come with any way to enforce security...
26 Mar 2014
I wanted to set up up a local vagrant instance running PHP, Nginx and MySQL that could act as a base environment for other projects I'm working on. These are the steps I took from start to finish.
04 Feb 2014
I was recently trying to install PHP CodeSniffer on a machine using PEAR but kept receiving the following error message
24 Sep 2013
I assumed that json_encode would make use of PHP's __toString() magic method, giving me the ability to manage how my object is processed. Turns out it doesn't
02 Sep 2013
I've just added infinite scrolling to the blog, with the help of the Infinite-Scroll plugin.
02 Sep 2013
Error Heroku Web process failed to bind to $PORT within 60 seconds of launch in nodejs
20 May 2013
How to preserve numerical array keys when merging two arrays together in PHP
10 Feb 2013
Settings up Database unit or integration testing with Doctrine 2 ORM and PHPUnit
09 Feb 2013
A quick one I recently learned about, Zend_Validate_Interface::isValid allows an optional second argument in addition to the required value parameter
01 Feb 2013
Running Zend Framework as a script can obviously be useful in many circumstances. These are the steps I take to get up and running on the command line.
30 Jan 2013
Case sensitive issues encountered with Zend view helpers on Windows
30 Jan 2013
Doctrine doesn't seem to have an inbuilt mechanism for checking for duplicate entries; one solution thrown around the web is to simply try catch the PDOException code 23000.
28 Jan 2013
How to exclude a certain document ID from within Sphinx and PHP
28 Oct 2012
Sphinx doesn't support filtering by strings as attributes (yet), so here are two options you can use to get around this limitation.
23 Oct 2012
I came across the popular jQuery File Upload plugin while looking for a simple to use and extensible file upload solution to integrate into a Zend Framework project.
09 Oct 2012
I needed a simple way to validate user-inputted XML with Zend_Form, so decided to write a simple
03 Oct 2012
A quick script I use to truncate all entities registered in Doctrine
01 Oct 2012
When not using GitHub to host your Git repositories, you don't have the luxury of simply cloning once you've created the repository. There are a few extra steps documented here
30 Sep 2012
Sometimes you want to override Doctrine types. For instance, if you have a child project that must adhere to a parent project's Entity Annotations, but you want to use a different class for the Doctrine return value (than the one specified in the parent project), overriding the existing Doctrine type can help.
24 Sep 2012
I came across an interesting issue recently when attempting to register multiple Zend_Navigation instances to the same view.
11 Sep 2012
Having recently switched from Eclipse to Netbeans for various reasons, I have found myself missing the "Obsidian" theme (originally from Notepad++, I believe).
07 Aug 2012
I've recently begun setting up test suite for a project I'm working on with PHPUnit. The project is built in Zend Framework and makes use of the Doctrine ORM.
29 Jul 2012
CentOS generally enjoys having out-dated software, such as Ruby 1.8.5. I wanted to get rails running on my VPS to have a play around, which required me to update rubygems and ruby