RESTing with Symfony

Well hi there! This repository holds the code for the whole Symfony REST tutorial series on KnpUniversity:

Setup the Project

Ok, cool - this will be easy!

  1. Make sure you have Composer installed.

  2. Install the composer dependencies:

composer install

Or you may need to run php composer.phar install - depending on how you installed Composer. This will probably ask you some questions about your database (answer for your system) and other settings (just hit enter for these).

  1. Load up your database

Make sure app/config/parameters.yml is correct for your database credentials. Then:

php app/console doctrine:database:create
php app/console doctrine:schema:update --force
php app/console doctrine:fixtures:load
  1. Start up the built-in PHP web server:
php app/console server:run

Then find the site at http://localhost:8000.

You can login with:

user: weaverryan pass: foo

Have fun!