1.0.2 2018-05-08 11:34 UTC

This package is not auto-updated.

Last update: 2023-12-04 11:50:08 UTC


This library will help you implement REST APIs faster. Just add an adapter that implements the interface, set the base URL and you are good to go. It's shipped with an OAuth adapter.


Install using composer:

composer require weblabnl/restclient

Using the Library

Setup client

$api = new \Weblab\RESTClient\RESTClient();

$adapter = (new \Weblab\RESTClient\Adapters\OAuth)


Make a POST request to a REST API

$result = $api->post('/users', ['first_name' => 'Ankie', 'last_name' => 'Visser']);