Zend Developer Zone
Where the ElePHPants come to learn

Zend Developer Zone

Getting Started with REST and Zend Framework 2

VERY Old Content Warning!

The content you are viewing is more than two years old. It is here for archival purposes. Do not use any advice in this article without double-checking it with a current source.

Over on his blog hounddog, Martin Shwalbe has written an excellent post on the topic of Getting Started with REST and Zend Framework 2. If you are new to Zend Framework 2, or new to REST, you will want to check this article out. A word of caution though, this tutorial assumes you have completed this “Getting Started” tutorial, as it builds upon that work. Here’s the opening, which is the longest portion of non-code in the entire post.

Today i want to show you how to build a rest application. This tutorials assume you have completed the Getting Started. I will be repeating lot of the steps allready explained in there. There is also a sample Album module which you can install from here.

This is a well-written tutorial that is easy to follow with a lot of cot-n-paste goodness. Shwalbe tells you very succinctly what you need to do and why and then gives you the code to do it.

At the end of the tutorial are a few good comments. If you like the help Shwalbe provides, make sure and leave him a comment saying so.

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