PHP Classes

Clean Architecture in PHP Symfony: Symfony based application in a Docker container

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 50 All time: 10,720 This week: 455Up
Version License PHP version Categories
clean-architecture-s 1.0.0The PHP License5PHP 5, Systems administration, Language
Description 

Author

This package can be used to implement a Symfony based application in a Docker container.

It provides all files to implement the start of a PHP application based on Symfony that can be run using Docker.

An application set using this package will be run using MongoDB and NginX.

Innovation Award
PHP Programming Innovation award nominee
June 2021
Number 6
Symfony is a popular PHP framework used to build Web applications.

Docker is a container-based system that allows packaging all the files needed to run an application and other applications that the main application depends on. It can also run the packaged application from its container.

This package makes it easier to build Symfony applications to be packaged and run using Docker.

Manuel Lemos
Picture of Omar Shaban
Name: Omar Shaban <contact>
Classes: 3 packages by
Country: Germany Germany
Innovation award
Innovation award
Nominee: 2x

 

Details

Clean Architecture in PHP Symfony

An example project following clean architecture principles in Symfony

Setup instructions

  1. create a .env file
    cp .env.dist .env
    
  2. create containers
    make start
    
  3. build php app - install vendor packages - check style/mess detector - run unit tests
make build-php-app php

  1. restart php container
    make restart php
    

Hosts

Service - URL: http://localhost:8021/

Documentation

  • README.md
  • docs/architecture_overview.pdf
  • Swagger/OpenAPI - json: http://localhost:8021/api/docs.json - swagger ui: http://localhost:8021/docs/

  Files folder image Files (78)  
File Role Description
Files folder imagedocker (3 directories)
Files folder imagedocs (1 file)
Files folder imagestore (7 files, 5 directories)
Accessible without login Plain text file .env.dist Data Auxiliary data
Accessible without login Plain text file docker-compose.yml Data Auxiliary data
Accessible without login Plain text file Makefile Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:50
This week:0
All time:10,720
This week:455Up