Save 37% off PRO during our Black Friday Sale! »

Deptrac - Keep Your Architecture Clean

Deptrac - Keep Your Architecture Clean

A short introduction to Deptract ( given at the PHPNW16 Unconference


Andreas Hucks

October 01, 2016


  1. Deptrac Clean Up Your Architecture SensioLabs

  2. SensioLabs Andreas Hucks CTO @ SensioLabs Germany @meandmymonkey

  3. SensioLabs

  4. None
  5. SensioLabs The Problem • Getting legacy code under control •

    Gain insight into applications • Constrain changes to boundaries defined by your architecture
  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…)
  7. SensioLabs Deptrac

  8. SensioLabs depfile.yml

  9. SensioLabs Demo Time

  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
  11. SensioLabs What can you do? • Use it. Test it!

    • Other output formats • More Collectors • Exclusions to allow specific deps
  12. SensioLabs Tim Glabisch @timglabisch and all contributors deptrac/graphs/contributors Kudos

  13. Thanks! SensioLabs