On The Fly PHP Image Manipulation Server With ImageRack, Heroku and S3

This guide will show you how to install an ImageRack server on an Heroku free dynamo to resize and serve images from an Amazon S3 bucket. ImageRack is an easy to setup on the fly image manipulation server written that I wrote to simplify handling user media uploads.

August 12, 2015
Elastic Beanstalk Logo

Deploying PHP Workers to AWS Elastic Beanstalk

AWS Elastic Beanstalk (EB) is an AWS service that lets you automatically deploy load balanced PHP applications to EC2. One of the lesser know features is the ability to setup EB as a worker to handle long running or computationally intensive tasks (Think image processing/bulk mail sending etc.). EB Workers listen to a SQS queue and automatically run any jobs you put onto the queue. In this post I’ll show you how to setup your own EB PHP worker.

May 17, 2015

Multiple Twig Template Folders with Slim Framework

This post is more for my own records than anything else as I couldn’t find this information anywhere on the internet.

I have a Slim Framework application that uses Twig for it’s templates. I wanted to initiate the Twig instance in my bootstrap file, but then to dynamically update the template directory within my class files depending on the request. It took me a while to figure out how to set Slim to look in multiple directories, or to change the template directory altogether, to render a view.

August 9, 2014