forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
![]() |
||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
.styleci.yml | ||
.travis.yml | ||
LICENSE.txt | ||
README.md | ||
composer.json | ||
phpunit.xml.dist |
README.md
Drupal Finder
Drupal Finder provides a class to locate a Drupal installation in a given path.
Usage
$drupalFinder = new \DrupalFinder\DrupalFinder();
if ($drupalFinder->locateRoot(getcwd())) {
$drupalRoot = $drupalFinder->getDrupalRoot();
$composerRoot = $drupalFinder->getComposerRoot();
...
}
Examples
License
GPL-2.0+