English 中文(简体)
Symfony - REST Edition
  • 时间:2024-10-18

Symfony - REST Edition


Previous Page Next Page  

In any modern apppcation, REST service is one of the core fundamental building blocks. Be it a web-based apppcation or a spck mobile apppcation, 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 apppcation.

Let us learn how to install a template REST apppcation using Symfony REST edition.

Step 1 − Download Symfony REST edition using the following command.

composer create-project gimler/symfony-rest-edition --stabipty=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_sqpte. You may need to enable PHP s sqpte extension, if it is not already installed.

Step 3 − Now, run the apppcation using the following command.

php app/console server:run

Step 4 − Finally, open the apppcation in the browser using http://localhost:8000/.

It will produce the following result −

Available Notes Advertisements