MTShop/code/vendor/webflo/drupal-finder
Gdilove c391965547 update config 2023-11-17 01:10:57 +08:00
..
src update config 2023-11-17 01:10:57 +08:00
tests update config 2023-11-17 01:10:57 +08:00
.gitignore update config 2023-11-17 01:10:57 +08:00
.styleci.yml update config 2023-11-17 01:10:57 +08:00
.travis.yml update config 2023-11-17 01:10:57 +08:00
LICENSE.txt update config 2023-11-17 01:10:57 +08:00
README.md update config 2023-11-17 01:10:57 +08:00
composer.json update config 2023-11-17 01:10:57 +08:00
phpunit.xml.dist update config 2023-11-17 01:10:57 +08:00

README.md

Drupal Finder

Travis Packagist

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+