drupal-finder
drupal-finder copied to clipboard
trafficstars
Drupal Finder
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+