Deptrac - Keep Your Architecture Clean

Deptrac - Keep Your Architecture Clean

A short introduction to Deptract (https://github.com/sensiolabs-de/deptrac) given at the PHPNW16 Unconference

E9612cd342dbddff6640b99db21deee7?s=128

Andreas Hucks

October 01, 2016
Tweet

Transcript

  1. 4.
  2. 5.

    SensioLabs The Problem • Getting legacy code under control •

    Gain insight into applications • Constrain changes to boundaries defined by your architecture
  3. 6.

    SensioLabs Clean Packages • Separate your business code from your

    framework • … or in fact, any other 3rd party libs • Separate your own layers (Domain, Application, Infrastructure…)
  4. 10.

    SensioLabs Drill down • Create multiple depfiles to create different

    views on your code • Enforce rules on different levels - inside your domain, or between top level packages
  5. 11.

    SensioLabs What can you do? • Use it. Test it!

    • Other output formats • More Collectors • Exclusions to allow specific deps