webflo/drupal-finder

Helper class to locate a Drupal installation.

Installs: 36 980 032

Dependents: 262

Suggesters: 0

Security: 0

Stars: 126

Watchers: 5

Forks: 25

Open Issues: 25

1.3.1 2024-06-28 13:45 UTC

README

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+