REST API Symfony2: the best 2013 way

This is the code to support the article at Symfony2 API REST the best way

Install with Composer

As Symfony uses Composer to manage its dependencies, the recommended way to create a new project is to use it.

If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:

curl -s http://getcomposer.org/installer | php

Then, use the create-project command to generate a new Symfony application:

php composer.phar create-project liuggio/symfony2-rest-api-the-best-2013-way -sdev
cd blog-rest-symfony2

Composer will install Symfony and all its dependencies under the blog-rest-symfony2 directory.

Run the test.

This repo is a demo/tutorial,

git checkout -f part1 phpunit -c app

git checkout -f part2 phpunit -c app