webflo / drupal-finder

GNU General Public License v2.0
126 stars 26 forks source link

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+