PHP Classes

Simple REST Server: Implement REST based Web services

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 4,247 All time: 699 This week: 186Up
Version License PHP version Categories
simple-rest-server 1.0.0GNU General Publi...5.3PHP 5, Web services
Description Author

This package can be used to implement REST based Web services.

There is a server class that can retrieve the Web service function being called and the respective parameters from the HTTP request and calls given user defined functions or a class previously registered to handle the Web service function calls.

The called function return values are encoded in the JSON format before they are returned to the client.

A separate class can take the class, function and parameters the client script wants to call, sends an HTTP request to the server to perform the Web service call and retrieves and decodes the return value.

Both client and server class support sending and receiving authentication parameters to restrict the users that can call the exposed Web services.

Picture of jeffrey Afable
Name: jeffrey Afable <contact>
Classes: 4 packages by
Country: Philippines Philippines
Age: ???
All time rank: 4019 in Philippines Philippines
Week rank: 544 Down6 in Philippines Philippines Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file Greetings.php Example Sample for the server class bind at the webservice
Accessible without login Plain text file client.php Example Sample for the client class
Accessible without login Plain text file server.php Example Sample for the server class
Plain text file simple_restclient.php Class Class for the client side
Plain text file simple_restserver.php Class Class for the server side

 Version Control Unique User Downloads Download Rankings  
 0%
Total:4,247
This week:0
All time:699
This week:186Up
For more information send a message to info at phpclasses dot org.