Table of Contents
All your business logic should be located here. The backend layer is split into four layers
- Business
- Contains the actual business logic (e.g. reader and writer) and the facade that will be used by other modules
- Communication
- Contains backend controller, commands, plugins that will be used by other services
- Persistence
- Contains entities and repositories
- Presentation
- Contains templates for the backend UI
The client is the bridge between the backend and frontend layer. Clients should not implement any business logic at all
Currently, this is used for base classes.
For now, I am using Twig to render my frontend. You could theoretically replace this with any technology you would like to use. I have splitted my frontend into 2 layers:
- Communication
- Contains frontend controllers. This could also be a REST API if you need one.
- Presentation
- Contains templates for the frontend
Shared contains classes that are used across the hole application like TransferObjects and Constants.
All you need to do is install Docker and Docker Compose.
- Clone the repo
git clone https://github.com/Tim-Koertgen/modular-symfony-template.git
- Start docker
docker-compose up -d
- Install composer packages
docker-compose exec php-fpm composer install
- Run doctrine migrations
docker-compose exec php-fpm php bin/console d:m:m --no-interaction
- Install npm packages
docker-compose run npm npm install
- Build the frontends
docker-compose run npm npm run build
- Import data
docker-compose exec php-fpm php bin/console data:import
You should be able to access the following two endpoints after your installation is finished:
Default backend credentials:
- Email: tim.koertgen@outlook.de
- Password: modular-symfony-template
Documentation is in progress
- Nothing specific planned. I keep the template up to date with the experience I gain from developing apps using this template
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Tim Körtgen - @SirPhoeniix - tim.koertgen@outlook.de
Project Link: https://github.com/Tim-Koertgen/modular-symfony-template