Skip to content
Screencast code, script and a 417 status code for our REST with Symfony tutorial
CSS PHP HTML Gherkin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_tuts
app
features/web
knpu
resources
src
vendor/symfony/symfony/src/Symfony/Component
web
.gitignore
README.md
behat.yml
composer.json
composer.lock

README.md

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!

You can’t perform that action at this time.