PHP-Based Web Application
You’ll make the Comedy Clüb program again. This time you’ll build a PHP application that takes the data and generates the pages dynamically.
You won’t write everything from scratch. Instead, you’ll use the Symfony framework. It provides routing functionality and a dependency injection container. Also, it will make it easier to extend the application later. Additionally, we’ll use the Twig template engine to render HTML.
You’ll use the repository pattern (repository classes as an abstraction of the data layer). These have methods for your data requests and return entity instances. The application doesn’t know where the entity data comes from, so the information about your data layer isn’t leaking into other parts of the application.
In this iteration, all the data is hard-coded in the repository factory. But, you’ll hide repository implementation behind the interface, so in the next mini-project, you can replace the data source without having to update other parts of the application.