Skip to content

michaeldyrynda/RestClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RestClient

A simple REST API client with support for DELETE, GET, POST and PUSH requests.

Basic usage

<?php
require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'RestClient.php';

$restclient = new RestClient( 'REST API base url' );

// Sample GET
$response = $restclient->execute(
    RestClient::REQUEST_TYPE_GET,
    '/api/path',
    array( 'q' => 'query', )
);

print_r( $response );

See test.php for a working example.

About

A REST API Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages