- Symfony Tutorial
- Symfony - Home
- Symfony - Introduction
- Symfony - Installation
- Symfony - Architecture
- Symfony - Components
- Symfony - Service Container
- Symfony - Events & EventListener
- Symfony - Expression
- Symfony - Bundles
- Creating a Simple Web Application
- Symfony - Controllers
- Symfony - Routing
- Symfony - View Engine
- Symfony - Doctrine ORM
- Symfony - Forms
- Symfony - Validation
- Symfony - File Uploading
- Symfony - Ajax Control
- Cookies & Session Management
- Symfony - Internationalization
- Symfony - Logging
- Symfony - Email Management
- Symfony - Unit Testing
- Symfony - Advanced Concepts
- Symfony - REST Edition
- Symfony - CMF Edition
- Complete Working Example
- Symfony Useful Resources
- Symfony - Quick Guide
- Symfony - Useful Resources
- Symfony - Discussion
Symfony - REST Edition
In any modern application, REST service is one of the core fundamental building blocks. Be it a web-based application or a slick mobile application, the front-end is usually a well designed interface for the back-end REST services. Symfony REST edition provides a readymade template to kick-start our REST based web application.
Let us learn how to install a template REST application using Symfony REST edition.
Step 1 − Download Symfony REST edition using the following command.
composer create-project gimler/symfony-rest-edition --stability=dev path/to/install
This will download the Symfony REST edition.
Step 2 − Try to configure it by asking some questions. For all the questions, select the default answer except database. For database, select pdo_sqlite. You may need to enable PHP's sqlite extension, if it is not already installed.
Step 3 − Now, run the application using the following command.
php app/console server:run
Step 4 − Finally, open the application in the browser using http://localhost:8000/.
It will produce the following result −