Symfony: Difference between revisions

From Rixort Wiki
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:
* <code>src/</code> - All PHP code goes in here.
* <code>src/</code> - All PHP code goes in here.
* <code>config/</code> - Configuration files.
* <code>config/</code> - Configuration files.
Add the built-in server:
composer require server


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

Revision as of 11:43, 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