Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6974439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:14:15+00:00 2026-05-27T17:14:15+00:00

There seem to be a variety of PHP frameworks that claim RESTful design patterns.

  • 0

There seem to be a variety of PHP frameworks that claim RESTful design patterns.

I’m looking for a framework that does a very good job providing a solid solution to these three items (or their equivalence).

1. Resource Requests

The first thing to do is be able to handle URL to resource resolution.

/path/to/resource = controller.action()

2. Request Methods

The second thing is to handle different types of request methods.

GET /path/to/resource  = controller.get()
POST /path/to/resource = controller.post()

Perhaps with a fallback to a universal handler if no request method matches.

GET /path/to/resource  = controller.action()
PUT /path/to/resource  = controller.action()
POST /path/to/resource = controller.action()

3. Response Formats

Last, I have seen people attach formats to the end of URL’s to help the framework know what type of response is expected.

/path/to/resource.html
/path/to/resource.json

Other ways people pass the response format in the header or as a URI param (?format=json).

These are three items that have to be covered. However, they don’t have to be handled the same way I just showed – those are just examples.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:14:16+00:00Added an answer on May 27, 2026 at 5:14 pm

    I have been researching for a similar framework, but there doesn’t seem to be much going on in the PHP world. Here is a related question about PHP REST frameworks.

    Recess looks interesting, and I found the new REST controllers and routers of the Zend Framework pretty useful. I also started implementing an easier approach on top of the Zend components. Basically you register a bunch of view renderers (HTML, JSON and a simple form of XML are supported out of the box, via accept header parsing or overwriting it with a format=? parameter) and body parsers (Web Foms, and JSON are enabled) and based on this interface:

    interface Feathry_Rest_Resource
    {
        public function index($params = null);
        public function get($id, $params = null);
        public function post($data, $params = null);
        public function put($data, $id = null, $params = null);
        public function delete($id, $params = null);
    }
    

    Where each method returns a plain array or object (with a toArray method) you can create a RESTful resource.
    The advantage is, that your resources are entirely decoupled from any Representation.
    They don’t even have to know that they are being used via HTTP as long as they follow
    the interface.
    It is still very alpha, and there didn’t seem to be much interest in it, but it does work so maybe you want to give it a try.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There seem to be many excellent web frameworks for Python. Has anyone used any
There seem to be very different opinions about using transactions for reading from a
There seem to be several things that were valid in Embperl 1.x that are
There seem to be many ways to define singletons in Python. Is there a
There seem to many ways to skin this particular cat - but which is
There seem to be two rival Eclipse plugins for integrating with Maven: m2Eclipse and
There seem to be a number of weird things one could do if one
There seem to be so many color wheel, color picker, and color matcher web
There seem to be many options to create an XML document in .NET. What's
There seem to be a limitation in the maximum number of clickable options in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.