I am making a REST based web server in PHP and wanted to know if using symfony would be a good idea.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Symfony 2.0 is a very good framework with a component architecture that makes it easy to use only the parts you need. The website symfpony-project.org describes how to create a REST web service with Symfony 2 (and compres it to Symfony 1).
Esspeciialy the HTTP kernel and routing components of Symfony 2 give me the impression that you can do a REST service easily: The Request objects contain alls kinds of useful information on the request headers and method. The routing component makes it easy to wire your controllers to certain URL patterns.
If the whole framework is too overwhelming for you, have a look at the Silex microframework. It is based on Symfony components and is good for quickly whipping up a REST web service.