Silex as main framework
- why ? lightweight, curiosity
A (quick win) Fork of Microrest
- why ? raml definition, routes management,
- Decorate the RestController to manage request parameter and response format
Curl + phpQuery
Firstly
git clone + composer install
- currently a basic mySql database called silexfwk
- database connection properties can be changed in config/prod.php
- one can find mySql scripts available in db folder
- the baseUri in silex-fwk/app/api.raml must match your vhost configuration (currently silex-fwk.dev is used)
php web/console.php GET /api/collect
- encoding in JSonResponse