Symfony: Difference between revisions

From Rixort Wiki
Jump to navigation Jump to search
(Created page with "Symfony is a web application framework written in PHP. Category:PHP")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Symfony is a web application framework written in [[PHP]].
Symfony is a web application framework written in [[PHP]].
== Creating a new project ==
composer create-project symfony/skeleton project-name
Add everything to Git:
  git init
  git add .
  git commit -m "Initial commit"
Important directories:
* <code>src/</code> - All PHP code goes in here.
* <code>config/</code> - Configuration files.
Add the built-in server:
composer require server
Run the server:
./bin/console server:run


[[Category:PHP]]
[[Category:PHP]]

Latest revision as of 12:44, 19 August 2018

Symfony is a web application framework written in PHP.

Creating a new project

composer create-project symfony/skeleton project-name

Add everything to Git:

 git init
 git add .
 git commit -m "Initial commit"

Important directories:

  • src/ - All PHP code goes in here.
  • config/ - Configuration files.

Add the built-in server:

composer require server

Run the server:

./bin/console server:run