Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/backendtea/dependency-finder
https://github.com/backendtea/dependency-finder
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/backendtea/dependency-finder
- Owner: BackEndTea
- License: mit
- Created: 2019-08-10T12:54:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-06T15:43:38.000Z (over 4 years ago)
- Last Synced: 2024-05-02T02:43:30.457Z (9 months ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Depend resolver
## What is this
This library allows you to find the dependencies of a php file.
It was created to help with another libary, that allows you to run tests for only changes files (and their dependencies)
## Usage
```php
build();$deps = $finder->getAllFilesDependingOn(['./tests/Fixtures/Circular/A.php']);
foreach ($deps as $dep) {
var_dump($dep);
}$finder->reBuild(['./src/Domain/User.php', './tests/Domain/User.php', './src/functions.php']);
```