Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (30 sloc) 1.28 KB

Restfulie PHP

Restfulie PHP port is in its earlier stages. Wait a while for some extra information and docs.

Meanwhile visit Restfulie’s website

How to install

To use the php version restfulie add the folder to your client project and do require the file Restfulie.class.php.

To run the tests install phpunit, php and enable the library HttpRequest in php.ini.

A simple get

$resource = Restfulie::at(url)->accepts('application/json')->get();

A simple post

	$x = new stdClass;
	$x->price = 11;
 	$result = Restfulie::at(url)->asFor("application/json")->post($x);

Checking the result

$resource = Restfulie::at(url)->accepts('application/json')->get();
$resource = Restfulie::at(url)->asFor('application/json')->post($resource);



Restfulie PHP was created by Carlos Alberto and has received contributions from:

Guilherme Silveira (Restfulie project leader)

More info

Do not forget to visit the official website for videos and other versions.


Restfulie is licensed under the Apache License, Version 2.0.

Jump to Line
Something went wrong with that request. Please try again.