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
StarStarStar 50%Total: 4,251 All time: 701 This week: 524Up
Version License PHP version Categories
simple-rest-server 1.0.0GNU General Publi...5.3PHP 5, Web services


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: 4049 in Philippines Philippines
Week rank: 271 Up1 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  
This week:0
All time:701
This week:524Up
 User Ratings  
 All time