API implementation tools with PHP



Now a days web applications are focused on single page web applications by using applications like AngularJS,HandleBars,Mustache. So it will be better to improve our skills in generating RESful APIs if you are working on server side PHP.


Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.


  • Powerful router
  • Standard and custom HTTP methods
  • Route parameters with wildcards and conditions
  • Route redirect, halt, and pass
  • Route middleware
  • Template rendering with custom views
  • Flash messages
  • Secure cookies with AES-256 encryption
  • HTTP caching
  • Logging with custom log writers
  • Error handling and debugging
  • Middleware and hook architecture
  • Simple configuration

Reference : http://www.slimframework.com/


Restler is a simple and effective multi-format Web API Server written in PHP.Just deal with your business logic in php, restler will take care of the REST!


  • No Learning Curve
  • Light weight
  • Flexible
  • Highly Customizable
  • Many Examples that can be tried on your localhost to get started
  • Supports HTTP request methods HEAD, GET, POST, PUT, DELETE, OPTIONS and PATCH via header or request paramater (method)
  • Supports both RESTful and Pragmatic REST API Design
  • Clients can use X-HTTP-Method-Override header, suuports Cross Origin Resource Sharing and JSONP
  • Two way format(media type) conversion both send and receive
    Pluggable content Formatter framework and api
    Comes with JSON, XML, Yaml, Amf, and Plist(both XML and Binary) format support
  • Pluggable Authentication schemes
    Pluggable Filters to effectively manage API usage
    API Rate Limiting Filter
  • Routing
  • Manual Routing (Annotation)
    Auto Routing (Reflection)-Cache built-in
    Client Side Caching support
    Proxy Caching support
    Server Side Caching-API Features
    Always supports URLEncoded format for simplified input (POST vars)
    Automatic parameter validation and type conversion
    API versioning support by URL and/or vendor specific MIME
    API documentation and discovery using Restler API Explorer
    Throttling and Performance tuning
  • Management
  • Behavior Driven API testing using Behat and Guzzle
    Command line Project Management using Respect/Foundation
    Dependency Management using Composer
    Source code distributed under LGPL
Reference :