1

I am planning to create application which has a database built into MySQL and to access those data i am planning to create REST webservices which returns the data in JSON , so that it can be easily access from JQuery Client.

Moreover , i have installed Symfony 2.0 successfully , as i am new to this framework , i don't know how can i create REST webservices from database.

so can anyone suggest me or give me a road map to kick start with a development of Rest Webservices in symfony.

If any one has some batter solution to create webservice in PHP then please suggest

2
  • Do you really need the full stack Symfony 2.0 for this project? Maybe you can have a look at Silex which it builds ont top of Symfony 2 Components. It's really fast to built an api with it ! Commented Mar 22, 2012 at 15:29
  • I really don't know whether it will be required or not as i am new to it Commented Mar 22, 2012 at 15:58

2 Answers 2

2

FOSRestBundle is a good place to start - https://github.com/FriendsOfSymfony/FOSRestBundle

Sign up to request clarification or add additional context in comments.

2 Comments

Depends on what you want. Symfony2 is a full fledged stack with authorization/authentication, ORM, templating, etc. If you do not need all that, then silex is a lightweight alternative. And scalability is something only you can determine depending on your setup.
Go ahead with FOSRestBundle, you will not regret
0

In addition to prepare the RESTfull API via FOSRestBundle you can use Symfony Forms to validate and process the input data

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.