Chris@18: # Drupal Finder Chris@18: Chris@18: [![Travis](https://img.shields.io/travis/webflo/drupal-finder.svg)](https://travis-ci.org/webflo/drupal-finder) [![Packagist](https://img.shields.io/packagist/v/webflo/drupal-finder.svg)](https://packagist.org/packages/webflo/drupal-finder) Chris@18: Chris@18: Drupal Finder provides a class to locate a Drupal installation in a given path. Chris@18: Chris@18: ## Usage Chris@18: Chris@18: ```PHP Chris@18: $drupalFinder = new \DrupalFinder\DrupalFinder(); Chris@18: if ($drupalFinder->locateRoot(getcwd())) { Chris@18: $drupalRoot = $drupalFinder->getDrupalRoot(); Chris@18: $composerRoot = $drupalFinder->getComposerRoot(); Chris@18: ... Chris@18: } Chris@18: ``` Chris@18: Chris@18: ## Examples Chris@18: Chris@18: - [Drupal Console Launcher](https://github.com/hechoendrupal/drupal-console-launcher) Chris@18: - [Drush Launcher](https://github.com/drush-ops/drush-launcher) Chris@18: Chris@18: ## License Chris@18: Chris@18: GPL-2.0+