Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Example site for PHPBenelux 2013 "RESTful Services Made Easy With ZF2" tutorial.
PHP
tree: f2d5d373d6

Updated to latest PhlyRestfully

- Required change to configuration: "identifier" instead of "identifiers", and
  string assignments instead of array, when defining controller event
  identifier.
Failed to load latest commit information.
config
data
module/Application
public
vendor Updated to latest PhlyRestfully
.gitignore
.gitmodules
LICENSE.txt
README.md
TODO.md
composer.json
composer.lock
composer.phar
init_autoloader.php

README.md

PHPBenelux 2013 "RESTful APIs with ZF2" Example

Introduction

This is an example project to accompany a tutorial for delivery at PHPBenelux 2013 by Rob Allen and Matthew Weier O'Phinney. It implements a sample RESTful API.

Installation

  • Initialize git submodules

    git submodule update --init

  • Run composer

    php composer.phar install

  • Use the sample database

    cp data/status.db.example data/status.db && chmod a+rwX data/status.db

Web Server

Afterwards, set up a virtual host to point to the public/ directory of the project and you should be ready to go!

Alternately, if you have PHP 5.4 or greater installed on your system, you can test the functionality by running the built-in webserver:

cd public
php -S localhost:8080

(Choose a hostname and port that will work for your machine.)

Exposed APIs

Visit http://localhost:8080/status/api/documentation to get information about the exposed APIs and usage. We recommend using either curl or HTTPie when testing the API.

Something went wrong with that request. Please try again.