Creating a blank project

Now that we have a Symfony installer all setup, let's go ahead and create a new blank project. We do so by simply executing a symfony new test-app command, as shown in the following command line instance:

Creating a blank project

Here we are creating a new project, called test-app. We can see that the Symfony installer is downloading the latest Symfony framework from the internet, alongside outputting a brief instruction on how to run the built in PHP server via Symfony console application. The whole process might take up to a few minutes.

The structure of newly created test-app directory occurs similar to the following one:

There are numerous files ...

Get Modular Programming with PHP 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.