WiseLoop PHP REST Services 3.3.1
RESTful web service API framework for PHP
WiseLoop PHP REST Services

Building a RESTful web service for your PHP web application has never been so easy!
WiseLoop PHP REST Services is a powerful API framework that allows easy development of any kind of API through RESTful web services.


Product Description

WiseLoop PHP REST Services allows easy building of a fully featured API for your web application by offering a powerful RESTful framework. The implementation time of any API is extremely fast due to the well designed framework that is using modern programming concepts such as OOP, hooks and dependency injection. Basically, the developer needs to focus on the API logic and own specific features, leaving the framework to do the other common tasks such as URL handling and parsing, actions call, output formatting and rendering etc.

Main Features

  • action filtering by request type (GET, PUT, POST, DELETE);
  • API versioning support: multiple versions for an API;
  • authentication & authorization support;
  • common output types built-in: JSON, XML, PHP serialization, PHP array, PLAIN;
  • custom output handlers support: create own output types;
  • triggers (hooks) support: call custom actions when specific events happens (5 triggers included);
  • anti-spam built-in trigger;
  • reject by IP built-in trigger;
  • API key implementation built-in support;
  • custom error formatting built-in support;
  • routing support: specify how the request URL should look like;
  • cache support;
  • allows very fast API development;
  • exhaustive documentation (samples, howto and video tutorials included);

Sample code

A basic service endpoint implementation:

$service = new wlRestService();
$service->registerController(new sampleHelloRestControllerV1());
$service->registerController(new sampleHelloRestControllerV2());
$service->registerOutputHandler(new csvSampleOutputHandler('csv'));
$service->registerTrigger(new ipRejectSampleTrigger(), wlRestTrigger::ON_REQUEST_EVENT);
$service->setCacheDir(__DIR__ . '/cache', 10);

Video Tutorials


 All Data Structures Functions Variables