Category: Tutorials

Creating development environments with Vagrant and Puppet

Vagrant is a powerful tool that simplifies the setup of a development environment by creating a virtual machine on your local machine that can be configured to look exactly like ServerGrove’s production server. With this post you will learn how to configure Vagrant using the same specifications of your ServerGrove VPS. It’s been a few […]

January 11 / 2013
Author Kim
Category PHP, Tutorials, VPS
Comments 1 Comment
Tags , , ,

How to install Zend Guard Loader for PHP on a VPS

In order to install Zend Guard Loader, we need to download the extension from the Zend Downloads Page. It will download a tarball file, that we will have to uncompress. $ tar -xzf ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz Once we have uncompressed the file, we will proceed with the installation. The extension is already compiled, so we just need to […]

January 09 / 2013
Author Kim
Category PHP, Tutorials, VPS
Comments No Comments
Tags ,

Dealing with “Too many open files” when running tests with PHPUnit

If you are performing unit tests on large PHP applications with PHPUnit, you may encounter the error “Too many open files”. It happens, don’t take it personally. This error occurs because the OS sets a maximum number of files (also known as file descriptors) allowed to be opened by a process, and inevitably this will […]

August 17 / 2012
Author Kim
Category PHP, Tutorials
Comments No Comments

Setting up a Symfony2 project using Mamp

This might be the easiest way to setup a Symfony dev environment. Say what you want of Mamp but it makes it dead easy to setup and manage your localhost server. Mamp is an excellent development environment especially if you are a newbie just starting off, and is definitely the simplest way to setup a […]

June 01 / 2012
Author Kim
Category PHP, Symfony, Tutorials
Comments 2 Comments
Tags , , ,

Generate URLs from within a Twig Extension with Symfony2

It’s possible to generate a URL from within a Twig extension in a Symfony2 application. To do this, you need to have access to the Router. If you have a custom Twig extension, this means that you’ll need to inject the router to the extension. Thanks to the Dependency Injection this is very easy to […]

May 13 / 2012
Author Pablo
Category PHP, Symfony, Tutorials
Comments No Comments
Tags , ,