Skip to content

carsala/restclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

PHP RESTClient

Summary

This library provides a simple abstraction in PHP for treating resources as objects that you perform CRUD operations on. For example:


    $resource = new RESTClient(array('url' => 'http://www.example.com/my/resource'));
    $resource->post($data, $headers);
    $resource->get($data, $headers);
    $resource->put($data, $headers);
    $resource->delete();

This API was inspired by the simple example provided in the Representation State Transfer wikipedia entry and the RESTful Web Services book by Leonard Richardson and Sam Ruby.

LICENSE

See the LICENSE file in this directory.

TODO

  • Added tests and a simple server.
  • HEAD support.
  • HTTP Authentication support.

About

A simple REST client.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages