Creating a project structure
The following is the folder structure of our app:
blog/
: App root created earlierbin/
: Specific command line tools of our blog appconfig/
: Configuration files of our appdata/
: The SQLite database will be stored heresrc/
: All PHP classes we write will be herevendor/
: This is where Composer (see the following section) stores all downloaded dependencies including the source code of Doctrinebin/
: This is a command-line tool provided by dependencies installed with Composerweb/
: This is the public directory that contains PHP pages and assets such as images, CSS, and JavaScript files
We must create all these directories except the vendor/
one that will be automatically generated later.