webflo / drupal-finder
Helper class to locate a Drupal installation from a given path.
Installs: 10 485 641
Dependents: 270
Suggesters: 0
Security: 0
Stars: 120
Watchers: 5
Forks: 19
Open Issues: 16
Requires
- ext-json: *
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^4.8
README
Drupal Finder provides a class to locate a Drupal installation in a given path.
Usage
$drupalFinder = new \DrupalFinder\DrupalFinder(); if ($drupalFinder->locateRoot(getcwd())) { $drupalRoot = $drupalFinder->getDrupalRoot(); $composerRoot = $drupalFinder->getComposerRoot(); ... }
Examples
License
GPL-2.0+