v1/vendor/webflo/drupal-finder
Gdilove 927f32325b 初始化 2023-11-13 20:36:13 +08:00
..
src 初始化 2023-11-13 20:36:13 +08:00
tests 初始化 2023-11-13 20:36:13 +08:00
.gitignore 初始化 2023-11-13 20:36:13 +08:00
.styleci.yml 初始化 2023-11-13 20:36:13 +08:00
.travis.yml 初始化 2023-11-13 20:36:13 +08:00
LICENSE.txt 初始化 2023-11-13 20:36:13 +08:00
README.md 初始化 2023-11-13 20:36:13 +08:00
composer.json 初始化 2023-11-13 20:36:13 +08:00
phpunit.xml.dist 初始化 2023-11-13 20:36:13 +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+