webflo / drupal-finder
Helper class to locate a Drupal installation.
Installs: 34 826 870
Dependents: 258
Suggesters: 0
Security: 0
Stars: 125
Watchers: 5
Forks: 24
Open Issues: 23
Requires
- php: >=8.1
- composer-runtime-api: ^2.2
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^10.4
This package is auto-updated.
Last update: 2024-05-10 21:02:28 UTC
README
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+