obtao/symfony-rest-api-framework

A Rest API distribution of the Symfony framework

v0.1.0 2015-01-27 18:59 UTC

This package is not auto-updated.

Last update: 2024-10-26 16:26:04 UTC


README

About

This projet is a Symfony Distribution to build fast Rest API. This uses the following components :

Requirements

As it uses the Symfony full-stack framework, this framework is only supported on PHP 5.3.9 and up.

Be warned that PHP 5.3.16 has a major bug in the Reflection subsystem and is not suitable to run Symfony (https://bugs.php.net/bug.php?id=62715)

Installation

Get the sources from Github with Composer

composer create-project obtao/symfony-rest-api-framework yourProjectPath

Install the project as a classic Symfony projet (see the documentation)

Test the API example :

/app_dev.php/api/blob should display a datetime

/app_dev.php/ should display the API documentation

Now you're done. Remove the Blob entity and the getBlobAction. Then, start to code in the ApiController.