Zend Developer Zone
Where the ElePHPants come to learn

Zend Developer Zone

Rob Allen talks about Vagrant in Zend Framework 1

Incredibly Old Content Warning!

The content you are viewing is more than three years old. It is here for archival purposes. Do not use any advice in this article.

::Jedi Hand Wave:: This is not the information you are looking for. Move along.


Recently Rob Allen wrote a post for his blog titled “Vagrant in Zend Framework 1“. If you use Vagrant to control your virtual machines, you are going to like this post. Rob is long on the how but short on the why; he assumes you know what the tools are and how to use them. This isn’t a bad thing but if you aren’t already familiar with the tools, this isn’t the tutorial you are looking for.

Her’es a quick bite to wet your appetite.

Vagrant is a fantastic tool that enables you to manage and run virtual machines from the command line, including automatic provisioning of them using puppet or chef. The really cool thing about it however from my point of view is that vagrant automatically sets up the VM with a folder called /vagrant that holds the code on your local hard drive from where you started the VM. This means that you can continue to edit your code in your local editor/IDE and test it within the VM easily.

Rob shows you how to:

  • Get up and running
  • Check out the Zend Framework codebase
  • Build your target version of PHP
  • Run your tests

The great thing is he also shows you how to have multiple versions of PHP and test against each of them.

Many moons ago, at the tender age of 14, Cal touched his first computer. (We're using the term "computer" loosely here, it was a TRS-80 Model 1) Since then his life has never been the same. He graduated from TRS-80s to Commodores and eventually to IBM PC's. For the past 10 years Cal has worked with PHP and MySQL on Linux OSX, and when necessary, Windows. He has built on a variety of projects ranging in size from simple web pages to multi-million dollar web applications. When not banging his head on his monitor, attempting a blood sacrifice to get a particular piece of code working, he enjoys building and managing development teams using his widely imitated but never patented management style of "management by wandering around". Cal is happily married to wife 1.31, the lovely and talented Kathy. Together they have 2 kids who were both bright enough not to pursue a career in IT. Cal blogs at http://blog.calevans.com and is the founder and host of Nomad PHP