Skip to content

scottie34/silex-fwk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Main components

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

Install

Firstly

git clone + composer install

change database connection properties

  • 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

change vhost configuration

  • the baseUri in silex-fwk/app/api.raml must match your vhost configuration (currently silex-fwk.dev is used)

How-To

collect posts

php web/console.php GET /api/collect

rest API available at baseUri/api

Known Issue (not matching requirements)

  • encoding in JSonResponse

About

Example of use of the microrest.php fork https://github.com/scottie34/microrest.php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages