Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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

Andreas Hucks

October 01, 2016
Tweet

More Decks by Andreas Hucks

Other Decks in Programming

Transcript

  1. SensioLabs The Problem • Getting legacy code under control •

    Gain insight into applications • Constrain changes to boundaries defined by your architecture
  2. 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…)
  3. 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
  4. SensioLabs What can you do? • Use it. Test it!

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