deptrac
Keep your architecture clean.
파일 탐색기
최종 버전 다운로드 (.zip)- ast.yaml
- build-docs.yml
- build.yml
- composer-diff.yml
- static-analysis.yml
- test-flag-fail-on-uncovered.sh
- test.yml
- cache.php
- deptrac_template.php
- services.php
- Dockerfile
- overrides.ini
- .template.md
- 2023-05-11_PHP_configuration.md
- 2025-06-28_Installing_via_bin_plugin.md
- SomeController.php
- SomeRepository.php
- SomeService.php
- Bar.php
- Baz.php
- Foo.php
- AnotherClassLikeAController.php
- SomeClass.php
- SomeClass2.php
- SomeOtherClass.php
- SomeOtherClass2.php
- ClassA.php
- ClassB.php
- SomeController.php
- SomeModel.php
- SomeController.php
- SomeModel.php
- SkipViolations.php
- Bar.php
- Bat.php
- Baz.php
- Foo.php
- InternalClasses.php
- ControllerServiceRepository1.depfile.yaml
- ControllerServiceRepository1.png
- DirectoryLayer.depfile.yaml
- Fixture.depfile.yaml
- GlobCollector.depfile.yaml
- GraphvizGroups.png
- implements.depfile.yaml
- import.deptrac.yaml
- import_baseline.deptrac.yaml
- import_layer1.deptrac.yaml
- import_layer2.deptrac.yaml
- MethodNames1.depfile.yaml
- ModelController1.depfile.yaml
- ModelController1.png
- ModelController2.depfile.yaml
- ModelController2.png
- Parameters.depfile.yaml
- SkipViolations.yaml
- sylius_depfile.yaml
- symfony_depfile.yaml
- Transitive.depfile.yaml
- Uncovered.depfile.yaml
- bc_policy.md
- blog.md
- CODE_OF_CONDUCT.md
- collectors.md
- concepts.md
- configuration.md
- CONTRIBUTING.md
- debugging.md
- deptrac.png
- extending_deptrac.md
- formatters.md
- index.md
- qossmic.png
- SECURITY.md
- upgrade.md
- IgnoreDependenciesOnContract.php
- ClassLike.php
- Function_.php
- Name.php
- AnalysisResult.php
- EventHelper.php
- PostProcessEvent.php
- ProcessEvent.php
- ViolationCreatingInterface.php
- AstInherit.php
- AstInheritType.php
- AstMapInterface.php
- ClassLikeReference.php
- ClassLikeToken.php
- ClassLikeType.php
- DependencyContext.php
- DependencyToken.php
- DependencyType.php
- FileOccurrence.php
- FileReference.php
- FileToken.php
- FunctionReference.php
- FunctionToken.php
- ReferenceBuilderInterface.php
- SuperGlobalToken.php
- TaggedTokenReference.php
- TaggedTokenReferenceInterface.php
- TokenInterface.php
- TokenReferenceInterface.php
- VariableReference.php
- AstException.php
- AstFileAnalysedEvent.php
- AstFileReferenceCacheInterface.php
- AstFileSyntaxErrorEvent.php
- AstMapExtractorInterface.php
- BaseReferenceExtractorInterface.php
- CouldNotParseFileException.php
- NikicReferenceExtractorInterface.php
- ParserInterface.php
- PHPStanReferenceExtractorInterface.php
- PostCreateAstMapEvent.php
- PreCreateAstMapEvent.php
- TypeResolverInterface.php
- TypeScope.php
- AttributeConfig.php
- BoolConfig.php
- ClassConfig.php
- ClassLikeConfig.php
- ClassNameRegexConfig.php
- ComposerConfig.php
- DirectoryConfig.php
- ExtendsConfig.php
- FunctionNameConfig.php
- GlobConfig.php
- ImplementsConfig.php
- InheritsConfig.php
- InterfaceConfig.php
- LayerConfig.php
- MethodConfig.php
- PhpInteralConfig.php
- SuperGlobalConfig.php
- TagValueRegexConfig.php
- TraitConfig.php
- UsesConfig.php
- CodeclimateConfig.php
- FormatterConfigInterface.php
- GraphvizConfig.php
- MermaidJsConfig.php
- AnalyserConfig.php
- CodeclimateLevelEnum.php
- CollectorConfig.php
- CollectorType.php
- ConfigurableCollectorConfig.php
- DeptracConfig.php
- EmitterType.php
- FeatureFlagsConfig.php
- Layer.php
- Ruleset.php
- DependencyEmitterInterface.php
- DependencyInterface.php
- DependencyListInterface.php
- PostEmitEvent.php
- PostFlattenEvent.php
- PreEmitEvent.php
- PreFlattenEvent.php
- TokenResolverInterface.php
- UnrecognizedTokenException.php
- CircularReferenceException.php
- Collectable.php
- CollectorInterface.php
- CollectorResolverInterface.php
- InvalidCollectorDefinitionException.php
- InvalidLayerDefinitionException.php
- LayerProviderInterface.php
- LayerResolverInterface.php
- BaselineMapperInterface.php
- OutputException.php
- OutputFormatterInput.php
- OutputFormatterInterface.php
- OutputInterface.php
- OutputStyleInterface.php
- Allowed.php
- CoveredRuleInterface.php
- Error.php
- OutputResult.php
- RuleInterface.php
- SkippedViolation.php
- Uncovered.php
- Violation.php
- Warning.php
- ExceptionInterface.php
- AnalyserException.php
- DependencyLayersAnalyser.php
- LayerDependenciesAnalyser.php
- LayerForTokenAnalyser.php
- RulesetUsageAnalyser.php
- TokenInLayerAnalyser.php
- TokenType.php
- UnassignedTokenAnalyser.php
- AstFileReferenceDeferredCacheInterface.php
- AstFileReferenceFileCache.php
- AstFileReferenceInMemoryCache.php
- CacheableFileSubscriber.php
- TypeResolver.php
- AstLoader.php
- AstMap.php
- AstMapExtractor.php
- DelegatingTokenResolver.php
- DependencyList.php
- DependencyResolver.php
- InheritDependency.php
- InvalidEmitterConfigurationException.php
- TokenResolver.php
- FileInputCollector.php
- InputCollectorInterface.php
- InputException.php
- PathNameFilterIterator.php
- CollectorProvider.php
- CollectorResolver.php
- LayerProvider.php
- LayerResolver.php
- AllowDependencyHandler.php
- DependsOnDisallowedLayer.php
- DependsOnInternalToken.php
- DependsOnPrivateLayer.php
- MatchingLayersHandler.php
- UncoveredDependentHandler.php
- UnmatchedSkippedViolations.php
- AnonymousClassExtractor.php
- CatchExtractor.php
- ClassConstantExtractor.php
- ClassExtractor.php
- ClassLikeExtractor.php
- ClassMethodExtractor.php
- ExpressionExtractor.php
- FunctionCallExtractor.php
- FunctionLikeExtractor.php
- GroupUseExtractor.php
- InstanceofExtractor.php
- InterfaceExtractor.php
- NewExtractor.php
- PropertyExtractor.php
- StaticCallExtractor.php
- StaticPropertyFetchExtractor.php
- TraitUseExtractor.php
- UseExtractor.php
- VariableExtractor.php
- config.neon
- parser.neon
- ClassLikeReferenceBuilder.php
- FileReferenceBuilder.php
- FunctionReferenceBuilder.php
- NikicFileReferenceVisitor.php
- PhpStanContainerDecorator.php
- PhpStanFileReferenceVisitor.php
- ReferenceBuilder.php
- AbstractParser.php
- DelegatingParser.php
- NikicPhpParser.php
- PhpStanParser.php
- DocParsingHelper.php
- Dependency.php
- FQDNIndexNode.php
- ClassDependencyEmitter.php
- ClassSuperglobalDependencyEmitter.php
- FileDependencyEmitter.php
- FunctionCallDependencyEmitter.php
- FunctionDependencyEmitter.php
- FunctionSuperglobalDependencyEmitter.php
- UsesDependencyEmitter.php
- AbstractTypeCollector.php
- ComposerFilesParser.php
- RegexCollector.php
- AttributeCollector.php
- BoolCollector.php
- ClassCollector.php
- ClassLikeCollector.php
- ClassNameRegexCollector.php
- ComposerCollector.php
- DirectoryCollector.php
- ExtendsCollector.php
- FunctionNameCollector.php
- GlobCollector.php
- ImplementsCollector.php
- InheritanceLevelCollector.php
- InheritsCollector.php
- InterfaceCollector.php
- LayerCollector.php
- MethodCollector.php
- PhpInternalCollector.php
- SuperglobalCollector.php
- TagValueRegexCollector.php
- TraitCollector.php
- UsesCollector.php
- ConfigurationCodeclimate.php
- ConfigurationGraphViz.php
- FormatterConfiguration.php
- GraphVizOutputFormatter.php
- BaselineOutputFormatter.php
- CodeclimateOutputFormatter.php
- ConsoleOutputFormatter.php
- GithubActionsOutputFormatter.php
- GraphVizOutputDisplayFormatter.php
- GraphVizOutputDotFormatter.php
- GraphVizOutputHtmlFormatter.php
- GraphVizOutputImageFormatter.php
- JsonOutputFormatter.php
- JUnitOutputFormatter.php
- MermaidJSOutputFormatter.php
- TableOutputFormatter.php
- XMLOutputFormatter.php
- AnalyseCommand.php
- AnalyseOptions.php
- AnalyseRunner.php
- ChangedFilesCommand.php
- ChangedFilesRunner.php
- CommandRunException.php
- DebugDependenciesCommand.php
- DebugDependenciesRunner.php
- DebugLayerCommand.php
- DebugLayerRunner.php
- DebugTokenCommand.php
- DebugTokenRunner.php
- DebugUnassignedCommand.php
- DebugUnassignedRunner.php
- DebugUnusedCommand.php
- DebugUnusedRunner.php
- InitCommand.php
- ConsoleSubscriber.php
- ProgressSubscriber.php
- Style.php
- SymfonyOutput.php
- Application.php
- CannotGetCurrentWorkingDirectoryException.php
- ConfigFileResolver.php
- DeptracVersion.php
- Env.php
- CacheFileException.php
- CannotLoadConfiguration.php
- InvalidServiceInLocatorException.php
- Configuration.php
- DeptracExtension.php
- DeptracPhpConfigLoader.php
- ServiceContainerBuilder.php
- CouldNotReadFileException.php
- FileAlreadyExistsException.php
- FileCannotBeParsedAsYamlException.php
- FileNotExistsException.php
- FileNotWritableException.php
- InvalidPathException.php
- IOException.php
- ParsedYamlIsNotAnArrayException.php
- Dumper.php
- FileReader.php
- YmlFileLoader.php
- FormatterProvider.php
- YamlBaselineMapper.php
- Period.php
- StartedPeriod.php
- Stopwatch.php
- StopwatchException.php
- EventHelperTest.php
- DeptracConfigTest.php
- LayerConfigTest.php
- AllowDependencyHandlerTest.php
- DependsOnInternalTokenTest.php
- DependsOnPrivateLayerTest.php
- MatchingLayersHandlerTest.php
- UncoveredDependentHandlerTest.php
- UnmatchedSkippedViolationsTest.php
- ClassLikeReferenceTest.php
- FileTokenTest.php
- FunctionReferenceTest.php
- TaggedTokenReferenceTestTrait.php
- BasicDependencyClass.php
- BasicDependencyTraits.php
- FixtureBasicInheritance.php
- FixtureBasicInheritanceInterfaces.php
- FixtureBasicInheritanceWithNoise.php
- MultipleInheritanceInterfaces.php
- Issue319.php
- AnnotationDependency.php
- AnonymousClass.php
- Attributes.php
- ClassConst.php
- ClassDocBlockDependency.php
- ClassExtract.php
- CountingUseStatements.php
- DocTags.php
- Functions.php
- MethodSignatures.php
- PropertyTypeDependency.php
- TemplateTypes.php
- AnnotationReferenceExtractorTest.php
- AnonymousClassExtractorTest.php
- CacheableFileSubscriberTest.php
- ClassConstantExtractorTest.php
- ClassDocBlockExtractorTest.php
- ClassExtractorTest.php
- FunctionLikeExtractorTest.php
- ParserTest.php
- TypeResolverTest.php
- ArrayAssertionTrait.php
- AstMapFlattenGeneratorTest.php
- AstMapGeneratorTest.php
- SomeClass.php
- Foo.php
- SomeClass.php
- Foo.php
- FQDN.php
- Functions.php
- UsedWithFQDN.php
- UsedWithNamespace.php
- Foo.php
- Bar.php
- Baz.php
- Foo.php
- ClassDependencyEmitterTest.php
- ClassSuperglobalDependencyEmitterTest.php
- EmitterTrait.php
- FileDependencyEmitterTest.php
- FQDNIndexNodeTest.php
- FunctionCallDependencyEmitterTest.php
- FunctionDependencyEmitterTest.php
- FunctionSuperglobalDependencyEmitterTest.php
- UsesDependencyEmitterTest.php
- DelegatingTokenResolverTest.php
- DependencyListTest.php
- DependencyResolverTest.php
- DependencyTest.php
- InheritDependencyTest.php
- TokenResolverTest.php
- example.php
- example.txt
- FileInputCollectorTest.php
- PathNameFilterIteratorTest.php
- composer.json
- composer.lock
- AttributeCollectorTest.php
- BoolCollectorTest.php
- ClassCollectorTest.php
- ClassLikeCollectorTest.php
- ClassNameRegexCollectorTest.php
- ComposerCollectorTest.php
- DirectoryCollectorTest.php
- ExtendsCollectorTest.php
- FunctionNameCollectorTest.php
- GlobCollectorTest.php
- ImplementsCollectorTest.php
- InheritanceLevelCollectorTest.php
- InheritsCollectorTest.php
- InterfaceCollectorTest.php
- LayerCollectorTest.php
- MethodCollectorTest.php
- PHPInternalCollectorTest.php
- SuperglobalCollectorTest.php
- TagValueRegexCollectorTest.php
- TraitCollectorTest.php
- UsesCollectorTest.php
- LayerResolverTest.php
- AnalyseCommandTest.php
- ConfigFileResolverTest.php
- ConsoleSubscriberTest.php
- EmptyEnv.php
- EnvTest.php
- ProgressSubscriberTest.php
- custom.yaml
- CustomPhpParser.php
- CustomToken.php
- CustomTokenResolver.php
- DeptracExtensionTest.php
- ServiceContainerBuilderTest.php
- deptrac.yaml
- CouldNotReadFileExceptionTest.php
- DumperTest.php
- depfile-syntax-error.yaml
- does-not-contain-array.yml
- DummyViolationCreatingRule.php
- expected-baseline-report_1.yml
- expected-baseline-report_2.yml
- expected-baseline-report_3.yml
- expected-baseline-report_4.yml
- expected-codeclimate-report_1.json
- expected-codeclimate-report_2.json
- expected-codeclimate-report_3.json
- expected-codeclimate-report_4.json
- expected-codeclimate-report_5.json
- expected-codeclimate-report_6.json
- expected-json-report_1.json
- expected-json-report_2.json
- expected-json-report_3.json
- expected-json-report_4.json
- expected-json-report_5.json
- expected-junit-report-with-skipped-violations.xml
- expected-junit-report-with-uncovered.xml
- expected-junit-report-with-unmatched-violations.xml
- expected-junit-report_1.xml
- expected-junit-report_2.xml
- expected-junit-report_3.xml
- expected-junit-report_4.xml
- expected-xml-report-with-skipped-violations.xml
- expected-xml-report_1.xml
- expected-xml-report_2.xml
- expected-xml-report_3.xml
- graphviz-expected.dot
- graphviz-groups-point.dot
- graphviz-groups.dot
- junit-schema-ant.xsd
- junit-schema-jenkins.xsd
- junit-schema-llg.xsd
- junit-schema-maven.xsd
- mermaidjs-expected.txt
- mermaidjs-shape-circle.txt
- mermaidjs-shape-stadium.txt
- BaselineOutputFormatterTest.php
- CodeclimateOutputFormatterTest.php
- ConfigurationCodeclimateTest.php
- ConfigurationGraphVizTest.php
- ConsoleOutputFormatterTest.php
- FormatterProviderTest.php
- GithubActionsOutputFormatterTest.php
- GraphVizDotOutputFormatterTest.php
- JsonOutputFormatterTest.php
- JUnitOutputFormatterTest.php
- MermaidJSOutputFormatterTest.php
- TableOutputFormatterTest.php
- XMLOutputFormatterTest.php
- StopwatchTest.php
- FileCannotBeParsedAsYamlExceptionTest.php
- ParsedYamlIsNotAnArrayExceptionTest.php
- YmlFileLoaderTest.php
- composer.json
- composer.lock
- composer.json
- composer.lock
- composer.json
- composer.lock
- composer.json
- composer.lock
- composer.json
- composer.lock
- composer.json
- composer.lock
- .editorconfig
- .gitattributes
- .gitignore
- .php-cs-fixer.dist.php
- baseline.xml
- compose.yaml
- composer-dependency-analyser.php
- composer.json
- composer.lock
- deptrac
- deptrac.baseline.yaml
- deptrac.php
- infection.json.dist
- LICENCE.md
- Makefile
- mkdocs.yml
- phpstan-baseline.neon
- phpstan.neon.dist
- phpunit.xml.dist
- psalm.xml
- README.md
- rector.php
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/deptrac/deptrac
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd deptrac
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker compose up -d --build
정의된 모든 컨테이너(서버, DB 등)를 한 번에 빌드하고 백그라운드에서 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
3. PHP (Composer)
쉬움사전 준비물
composer require --dev deptrac/deptrac
이 명령어를 터미널에 그대로 입력해 실행하세요.
php -S localhost:8000 같은 내장 서버로 실행한 뒤 브라우저에서 http://localhost:8000 으로 접속해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
4. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
