> ## Content Index
> Fetch the complete content index at: https://www.binarysludge.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Talk: Instant RESTful APIs
- URL: https://www.binarysludge.com/2012/05/17/talk-instant-restful-apis/
- Published: 2012-05-17T14:14:00.000Z
- Updated: 2015-01-16T15:20:02.000Z
- Author: Andrew Martin
- Tags: API, PHP, talk, #Import 2026-10-22 12:56

Here are the notes from my lightning talk at [PHPSW on May 16, 2012](http://www.meetup.com/php-sw/events/63933992/?ref=binarysludge.com).

###### Instant RESTful APIs

- [http://blog.programmableweb.com/2011/09/23/short-list-of-restful-api-frameworks-for-php/](http://blog.programmableweb.com/2011/09/23/short-list-of-restful-api-frameworks-for-php/?ref=binarysludge.com)
- Why REST?  
  - www glue
  - standardised
  - traction (3950/5921 on Programmable Web)  
    - soap 1183
    - xml-rpc 152
  - low level (body not required for initial routing)
  - NOT SOAP!  
    - WSDLs always out of sync with reality
    - parsing overhead (not noticeable until scale)
    - single response format XML
- Frameworks  
  - OOP Rest Controller  
    - - FuelPHP (Controller\_Rest)
    - - Zend (Rest\_Server)
    - Are...  
      - Part of a fully-featured package
      - Not necessarily quick to deploy
  - New Paradigms  
    - self generating  
      - - Recess - included database modelling, MVC
      - - FRAPI - high level, media types, generates docs
    - Resource-Method-Representation  
      - - Tonic
      - very RESTful - every URL as resource
    - Restler (non-RESTful examples!)  
      - heavily customisable, supports XML
      - resources mapped directly to classes
    - DAVE (Delete, Add, Edit, View)  
      - includes single-threaded webserver, rate limiting, caching
      - not maintained
    - Apify  
      - easy output encoding
  - Sinatra style  
    - Slim
    - Fat-free
    - Express node.js
  - Why slim?  
    - comparable to node.js express
    - very lightweight
    - extensible via middleware
    - maintained!
- A simple echo server  
  - POST /echo
  - GET /echo/1
  - PUT /echo/1
  - DELETE /echo/1
  - GET /echo/1
- RESTful web services