webflo/drupal-finder

Helper class to locate a Drupal installation.

Installs: 34 853 458

Dependents: 258

Suggesters: 0

Security: 0

Stars: 125

Watchers: 5

Forks: 24

Open Issues: 23

1.3.0 2024-05-08 21:22 UTC

README

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+