PHPackages                             philipphermes/symfony-layered-architecture - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. philipphermes/symfony-layered-architecture

ActiveLibrary[Framework](/categories/framework)

philipphermes/symfony-layered-architecture
==========================================

Provides a Twig compiler pass and routing loaders that enable support for a layered architecture.

1.0.1(4mo ago)0106MITPHPPHP &gt;=8.4CI passing

Since Dec 18Pushed 4mo agoCompare

[ Source](https://github.com/philipphermes/symfony-layered-architecture)[ Packagist](https://packagist.org/packages/philipphermes/symfony-layered-architecture)[ RSS](/packages/philipphermes-symfony-layered-architecture/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

Symfony Layer Architecture
==========================

[](#symfony-layer-architecture)

Provides a Twig compiler pass and routing loaders that enable support for a layered architecture.

[![CI](https://github.com/philipphermes/symfony-layered-architecture/actions/workflows/ci.yml/badge.svg)](https://github.com/philipphermes/symfony-layered-architecture/actions/workflows/ci.yml)[![PHP](https://camo.githubusercontent.com/db2abc4c99337a799d57b191c749e512b551eaebf6ce7c37e0ea9eac2eb1b9f6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e342d3838393242462e737667)](https://camo.githubusercontent.com/db2abc4c99337a799d57b191c749e512b551eaebf6ce7c37e0ea9eac2eb1b9f6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e342d3838393242462e737667)

Table of Contents
-----------------

[](#table-of-contents)

1. [Installation](#installation)
    1. [twig compiler pass](#register-twig-compiler-pass)
    2. [services](#update-servicesyaml)
    3. [routes](#update-routesyaml)
    4. [doctrine](#update-doctrineyaml)
    5. [migrations](#update-doctrine_migrationsyaml)
    6. [install deptrac](#install-deptrac)
    7. [configure deptrac](#add-deptracyaml-to-your-project-root)
2. [Code Quality](#code-quality)
    1. [deptrac](#deptrac)
    2. [phpstan](#phpstan)
3. [Test](#test)
    1. [phpunit](#phpunit)

Installation
------------

[](#installation)

```
composer require philipphermes/symfony-layered-architecture
```

### Register Twig Compiler Pass

[](#register-twig-compiler-pass)

```
