Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2023-03-13 (6 months ago)  | | Not yet rated by the users | | Total: 14 | | All time: 11,088 This week: 80 |
|
Description | | Author Smoren
Contributor
|
This package can find dependencies of project that uses Yii2.
It can scan the files of a project that is in a given path and finds the dependencies of that project on Yii2 modules.
The package can output the depedencies that it finds in text or CVS formats. Innovation Award
 March 2023
Number 8 |
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 |
| |
 |
|
Innovation award
 Nominee: 14x |
|
Details
yii2-dependency-finder
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);
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.