Skip to content
Silex REST API with HATEOAS and Behat testing
CSS PHP HTML Gherkin Ruby
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
cache/serializer
data
features
logs
src/KnpU/CodeBattle
translations
vendor
views
web
LICENSE
README.md
behat.yml.dist
behat_defaults.yml
composer.json
composer.lock
config.rb
testing.php

README.md

REST PHP Tutorial

This repository holds the screencast code, script and HATEOAS for the RESTful APIs in the Real World Episode 1 course from KnpUniversity.

For more details, see the following blog posts:

Installation

  1. Download/install Composer into this directory. See http://getcomposer.org

  2. Download the vendor files by running:

php composer.phar install
  1. Point your web server at this directory, or use the built-in PHP web server, which is nice and friendly (but requires PHP 5.4+)
cd web
php -S localhost:8000
  1. Make sure a few directories are writeable:
mkdir logs
mkdir data
chmod 777 logs data
  1. Load up the app in your browser!

    http://localhost:8000

Collaboration

As we start writing the content for this tutorial, we invite you to read through it, try things out, and offer improvements, either as issues on this repository or as pull requests. REST is hard, so the more smart minds we can have on it, the better it will be for everyone.

Cheers!

You can’t perform that action at this time.