Recommend this page to a friend! |
Extension for finding horizontal dependencies of Yii2 modules
composer require smoren/yii2-dependency-finder
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);
Classes of Smoren Freelight | > | Yii2 Dependency Finder | > | Download .zip .tar.gz | > | Support forum | > | Blog (1) | > | Latest changes |
|
Groups | Applications | Files |
Groups |
Debug | Debug data dumping, bug detection and reporting | View top rated classes |
Utilities and Tools | General purpose tools to simplify software development | View top rated classes |
Files and Folders | Listing, accessing and manipulating files and folders | View top rated classes |
Language | Constructs to assist in the language control | View top rated classes |
PHP 7 | Classes using PHP 7 specific features | View top rated classes |
Innovation Award |
March 2023 Nominee Vote |
Complex projects are often made of packages that provide services to others to reuse the work done by their developers, thus reducing the time the projects can take to develop. Knowing the dependencies of projects on other packages can be helpful for developers to determine what packages their projects depend on. This package implements means to find the dependencies of projects that use the Yii2 framework. Manuel Lemos |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
File | Role | Description | ||
---|---|---|---|---|
src (6 directories) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Collections (2 files) | ||||
Finders (3 files) | ||||
Interfaces (6 files) | ||||
Structs (2 files) | ||||
Walkers (2 files) | ||||
Writers (4 files) |
Files | / | src | / | Collections |
File | Role | Description |
---|---|---|
ModuleDependencyCollection.php | Class | Class source |
ProjectDependencyCollection.php | Class | Class source |
Files | / | src | / | Finders |
File | Role | Description |
---|---|---|
FileDependencyFinder.php | Class | Class source |
ModuleDependencyFinder.php | Class | Class source |
ProjectDependencyFinder.php | Class | Class source |
Files | / | src | / | Interfaces |
File | Role | Description |
---|---|---|
CollectionInterface.php | Class | Class source |
FinderInterface.php | Class | Class source |
ModuleInterface.php | Class | Class source |
PathInterface.php | Class | Class source |
WalkerInterface.php | Class | Class source |
WriterInterface.php | Class | Class source |
Files | / | src | / | Structs |
File | Role | Description |
---|---|---|
Module.php | Class | Class source |
Path.php | Class | Class source |
Files | / | src | / | Walkers |
File | Role | Description |
---|---|---|
ProjectModuleWalker.php | Class | Class source |
ProjectTreeWalker.php | Class | Class source |
Files | / | src | / | Writers |
File | Role | Description |
---|---|---|
BaseFileWriter.php | Class | Class source |
CsvWriter.php | Class | Class source |
DetailedTxtWriter.php | Class | Class source |
ShortTxtWriter.php | Class | Class source |
Download all files: yii2-dependency-find.tar.gz yii2-dependency-find.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|
Files |
File | Role | Description | ||
---|---|---|---|---|
src (6 directories) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Collections (2 files) | ||||
Finders (3 files) | ||||
Interfaces (6 files) | ||||
Structs (2 files) | ||||
Walkers (2 files) | ||||
Writers (4 files) |
Files | / | src | / | Collections |
File | Role | Description |
---|---|---|
ModuleDependencyCollection.php | Class | Class source |
ProjectDependencyCollection.php | Class | Class source |
Files | / | src | / | Finders |
File | Role | Description |
---|---|---|
FileDependencyFinder.php | Class | Class source |
ModuleDependencyFinder.php | Class | Class source |
ProjectDependencyFinder.php | Class | Class source |
Files | / | src | / | Interfaces |
File | Role | Description |
---|---|---|
CollectionInterface.php | Class | Class source |
FinderInterface.php | Class | Class source |
ModuleInterface.php | Class | Class source |
PathInterface.php | Class | Class source |
WalkerInterface.php | Class | Class source |
WriterInterface.php | Class | Class source |
Files | / | src | / | Structs |
File | Role | Description |
---|---|---|
Module.php | Class | Class source |
Path.php | Class | Class source |
Files | / | src | / | Walkers |
File | Role | Description |
---|---|---|
ProjectModuleWalker.php | Class | Class source |
ProjectTreeWalker.php | Class | Class source |
Files | / | src | / | Writers |
File | Role | Description |
---|---|---|
BaseFileWriter.php | Class | Class source |
CsvWriter.php | Class | Class source |
DetailedTxtWriter.php | Class | Class source |
ShortTxtWriter.php | Class | Class source |
Download all files: yii2-dependency-find.tar.gz yii2-dependency-find.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|