php version of restfulie client
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
server @ 74b0749
.gitmodules
Gemfile
LICENSE
Readme.textile
changelog.txt
tests.sh

Readme.textile

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);

print($resource->response->body);
print($resource->response->code) 

Team

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.

License

Restfulie is licensed under the Apache License, Version 2.0.