I've spent a week reading about RESTful webservice and searching for a fully example to build my project above. When I reach a fully understanding of the REST webservice, I couldn't find any full implementation for it!

I was wondering why there's a lack in code samples of this great technique.

I want to implement it with PHP and Apache web server and make it fully and has all verbs like this tutorial [part-1][1] , [part-2][2] (see comments for links) saying:

The Basics of a RESTful Request

Every REST request consists of essentially the same basic parts:

  • The URL – This is the URL we’ll be making a request against (often referred to as a resource).
  • The Verb – GET, POST, PUT, or DELETE… there are some others out there, but these are the 4 most common ones.
  • The Params – The parameters we’ll be supplying to the API, often referred to as the request body.
  • Credentials – Username and password… we’ll cover HTTP Digest auth credentials.

And, of course, we’ll have a few pieces for our response as well:

  • The Response Body – The actual response body the API gave us.
  • The Response Status Code – The HTTP status code the API responded with.
  • Other Response Info – We’ll also have some other interesting info in the response.

At first I tried this sample , but I found later that it doesn't follow REST standard rules.

After digging in the web I found this example but it doesn't give me the server code! Just the client code and processing response.

Do you know any common lib for REST that support both server-side and client-side ? with examples and docs? please give me your suggestions , it's urgent .

  • Your links [1] and [2] are broken.
    – Zistoloen
    May 28, 2013 at 14:40
  • no , but I'm a new user which not allowed to put more than two links in question . Here they are : part1 part2 May 29, 2013 at 6:29
  • Ok @Nancy Smith.
    – Zistoloen
    May 29, 2013 at 6:38

1 Answer 1


For server side development I can recommend Restler. I don't know any lib that covers both client and server.

  • Actually I think it's a great lib , There's 12 examples with documentation . I'm trying all of them now . Client may be included in examples you know , and thus , your answer may be the ONE I've been looking for ;) Thanks in advance May 29, 2013 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.