Skip to content
r.

deptrac

deptrac/deptrac · Public GitHub repository

Keep your architecture clean.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

deptrac live demo screenshot
Captured from the live demo · 2026-10-30

About this project

Author-written excerpt from the project README.

Deptrac is a static code analysis tool for PHP that helps you communicate, visualize and enforce architectural decisions in your projects. You can freely define your architectural layers over classes and which rules should apply to them.

For example, you can use Deptrac to ensure that bundles/modules/extensions in your project are truly independent of each other to make them easier to reuse.

Deptrac can be used in a CI pipeline to make sure a pull request does not violate any of the architectural rules you defined. With the optional Graphviz or Mermaidjs formatter you can visualize your layers, rules and violations.

Requirements and intended audience

Deptrac is a static code analysis tool for PHP that helps you communicate, visualize and enforce architectural decisions in your projects. You can freely define your architectural layers over classes and which rules should apply to them.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-25. Source: https://github.com/deptrac/deptrac/blob/4.x/README.md

Recorded maintenance information

Last recorded source update: 2026-09-20. Saved release: 4.7.2 · 2026-09-15. These dates do not guarantee ongoing maintenance.

Technologies
PHP
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-16. This does not test every feature.

Browse related categories