[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8588":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":23,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":15,"starSnapshotCount":15,"syncStatus":18,"lastSyncTime":31,"discoverSource":32},8588,"deptrac","deptrac\u002Fdeptrac","Keep your architecture clean.","http:\u002F\u002Fdeptrac.github.io\u002Fdeptrac\u002F",null,"PHP",2950,152,41,28,0,4,16,2,28.55,"MIT License",false,"4.x",true,[25,26,27],"architecture","clean-architecture","php","2026-06-12 02:01:55","# Deptrac\n\nDeptrac is a static code analysis tool for PHP that helps you communicate,\nvisualize and enforce architectural decisions in your projects. You can freely\ndefine your architectural layers over classes and which rules should apply to\nthem.\n\nFor example, you can use Deptrac to ensure that bundles\u002Fmodules\u002Fextensions in\nyour project are truly independent of each other to make them easier to reuse.\n\nDeptrac can be used in a CI pipeline to make sure a pull request does not\nviolate any of the architectural rules you defined. With the optional Graphviz\nor Mermaidjs formatter you can visualize your layers, rules and violations.\n\n## Documentation\n\nYou can find the documentation in the \u002Fdocs directory or visit the doc page:\nhttps:\u002F\u002Fdeptrac.github.io\u002Fdeptrac\n\n## Getting Started\n\nYou can install Deptrac via Composer. We recommend using the\n[deptrac](https:\u002F\u002Fgithub.com\u002Fdeptrac\u002Fdeptrac) package for this:\n\n```console\ncomposer require --dev deptrac\u002Fdeptrac\n```\n\nOnce you have downloaded\u002Finstalled deptrac, you will need to create a\n[configuration file](docs\u002Findex.md#configuration), where you define your layers and\ncommunication ruleset. This configuration file is written in YAML or php and, by default,\nis stored with the name `deptrac.yaml` in your project's root directory.\n\nDeptrac can generate a template for you, using the `init` command.\n\n```console\nvendor\u002Fbin\u002Fdeptrac init\n```\n\nWhen you have this file, you can analyse your code by\nrunning the `analyse` command:\n\n```console\nvendor\u002Fbin\u002Fdeptrac\n\n# which is equivalent to\nvendor\u002Fbin\u002Fdeptrac analyse --config-file=deptrac.yaml\n```\n\nIn order to run Deptrac you need at least PHP 8.1.\n\nYou can analyse projects that require an older PHP version as long as\n[nikic\u002Fphp-parser](https:\u002F\u002Fgithub.com\u002Fnikic\u002FPHP-Parser) can parse it.\n\n\n## How to Contribute\n\nSee the [contribution guide](docs\u002FCONTRIBUTING.md).\n\n## Further Documentation\n\n* [Backwards Compatibility](docs\u002Fbc_policy.md) - General info on how we approach\n  backwards compatibility\n* [Upgrade Guide](docs\u002Fupgrade.md) - List of backwards breaking changes that\n  need to be addressed when upgrading Deptrac to a new version and how to do it.\n* [Core Concepts](docs\u002Fconcepts.md) - Explains layers, rules and violations in\n  more details.\n* [Configuration](docs\u002Fconfiguration.md) - Reference for all available settings\n  in a depfile\n* [Collectors](docs\u002Fcollectors.md) - Reference for which collectors are\n  available in Deptrac to define your layers.\n* [Formatters](docs\u002Fformatters.md) - Lists the different output formats\n  supported by Deptrac\n* [Debugging](docs\u002Fdebugging.md) - Overview of the debug commands\n* [Code Of Conduct](docs\u002FCODE_OF_CONDUCT.md) - Our community standards\n* [Contribute](docs\u002FCONTRIBUTING.md) - Advice for contributing code changes,\n  e.g. how to run tests or how to build a phar file with your changes that you\n  can use to analyse your projects\n* [Security Guide](docs\u002FSECURITY.md) - How to report security vulnerabilities\n","Deptrac 是一个用于 PHP 的静态代码分析工具，旨在帮助开发者沟通、可视化并强制执行项目中的架构决策。其核心功能包括自定义架构层与规则，并通过 CI 管道确保代码变更不违反这些规则；同时支持使用 Graphviz 或 Mermaidjs 格式化器来可视化架构层次和违规情况。该工具适用于需要保持清晰架构的 PHP 项目中，特别是在大型或团队协作开发环境下，能够有效促进模块独立性和可重用性。要求 PHP 8.1 及以上版本运行，但也能分析较旧版本 PHP 编写的代码。","2026-06-11 03:18:45","top_language"]