smoren / yii2-dependency-finder
Extension for finding horizontal dependencies of Yii2 modules
Installs: 69
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=7.4.0
- smoren/extended-exceptions: ^1.0.0
- smoren/nested-accessor: ^0.1.0
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-12-17 21:48:13 UTC
README
Extension for finding horizontal dependencies of Yii2 modules
How to install to Yii2 project
composer require smoren/yii2-dependency-finder
Usage
use Smoren\Yii2\DependencyFinder\Finders\ProjectDependencyFinder; use Smoren\Yii2\DependencyFinder\Structs\Path; use Smoren\Yii2\DependencyFinder\Writers\ShortTxtWriter; use Smoren\Yii2\DependencyFinder\Writers\ShortTxtWriter; use Smoren\Yii2\DependencyFinder\Writers\DetailedTxtWriter; use Smoren\Yii2\DependencyFinder\Writers\CsvWriter; $dependencyFinder = new ProjectDependencyFinder(new Path(dirname(__DIR__))); $dependencyCollection = $dependencyFinder->find(); print_r($dependencyCollection->getSummary()); $writer = new ShortTxtWriter(new Path(dirname(__DIR__), 'logs/dependencies_short.txt')); $writer->write($dependencyCollection); $writer = new DetailedTxtWriter(new Path(dirname(__DIR__), 'logs/dependencies_detailed.txt')); $writer->write($dependencyCollection); $writer = new CsvWriter(new Path(dirname(__DIR__), 'logs/dependencies.csv')); $writer->write($dependencyCollection);