Symfony

From Rixort Wiki
Revision as of 11:44, 19 August 2018 by Paul (Sọ̀rọ̀ | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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