webflo/drupal-finder

Helper class to locate a Drupal installation from a given path.

Installs: 7 566 109

Dependents: 248

Suggesters: 0

Security: 0

Stars: 118

Watchers: 5

Forks: 19

Open Issues: 14

1.2.0 2019-08-02 08:06 UTC

This package is auto-updated.

Last update: 2020-05-01 00:11:52 UTC


README

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+