Skip to content

webflo/drupal-finder

Repository files navigation

Drupal Finder

GitHub Workflow Status Packagist

Drupal Finder provides a class to locate a Drupal installation based on Composer metadata.

Usage

$drupalFinder = new \DrupalFinder\DrupalFinderComposerRuntime();

$drupalRoot = $drupalFinder->getDrupalRoot();
$composerRoot = $drupalFinder->getComposerRoot();
$vendorDir = $drupalFinder->getVendorDir();

Examples

License

GPL-2.0+